ruby on rails - How can I call an instance method winthin a searchable Sunspot model block? -
i have solr-indexed ror model (via sunspot).
how can set phone call instance method in searchable block?
i want this:
searchable string :name self.address.each |a| eval 'string :address_' + a.id.to_s ' + a.value + ' end' end end
how can given sunspot redefines self in dsl here?
ruby-on-rails solr eval sunspot
No comments:
Post a Comment