Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support for associations #3

Open
rafaelss opened this issue Sep 8, 2010 · 0 comments
Open

support for associations #3

rafaelss opened this issue Sep 8, 2010 · 0 comments
Labels

Comments

@rafaelss
Copy link
Owner

rafaelss commented Sep 8, 2010

currently it's possible index associations using delegators

class Story

  delegate :name, :to => :category, :prefix => true, :allow_nil => true
  delegate :name, :to => :city, :prefix => true, :allow_nil => true

  define_index do
    field :category_name
    field :city_name
  end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant