Module: Cms::Behaviors::Searching::ClassMethods

Defined in:
lib/cms/behaviors/searching.rb

Instance Method Summary collapse

Instance Method Details

#default_order_for_searchObject



43
44
45
# File 'lib/cms/behaviors/searching.rb', line 43

def default_order_for_search
  "#{table_name}.#{searchable_columns.first}"
end

#searchable_columnsObject



40
41
42
# File 'lib/cms/behaviors/searching.rb', line 40

def searchable_columns
  @searchable_columns
end