Module: AsiaSearch::Base::ClassMethods

Defined in:
lib/asiasearch.rb

Instance Method Summary collapse

Instance Method Details

#has_keyword(column_name, options = {}) ⇒ Object



19
20
21
22
23
# File 'lib/asiasearch.rb', line 19

def has_keyword(column_name, options = {})
  define_method "keyword_content" do
    self.send(column_name)
  end
end