Module: ActiveScaffold::Actions::FieldSearch::InstanceMethods

Defined in:
lib/active_scaffold/actions/field_search.rb

Instance Method Summary collapse

Instance Method Details

#show_searchObject

FieldSearch uses params and not @record because search conditions do not always pass the Model’s validations. This facilitates for example, textual searches against associations via .search_sql



14
15
16
17
# File 'lib/active_scaffold/actions/field_search.rb', line 14

def show_search
  @record = empty_model
  super
end