class ActiveScaffold::Config::FieldSearch
Constants
- NO_COLUMNS
Attributes
default search params default_params
= {title: {“from”=>“test”, “to”=>“”, “opt”=>“%?%”}}
add array of columns as options for group by to get aggregated listings
columns to display on aggregated listing
human conditions instead of just filtered you may show the user a humanized search condition statment
the ActionLink for this action
A flag for how the search should do full-text searching in the database:
-
:full: LIKE %?%
-
:start: LIKE ?%
-
:end: LIKE %?
-
false: LIKE ?
Default is :full
whether refresh columns defined in update_columns
when a column is changed, as create and update forms do
Public Class Methods
Source
# File lib/active_scaffold/config/field_search.rb, line 6 def initialize(core_config) super @text_search = self.class.text_search @human_conditions = self.class.human_conditions @floating_footer = self.class.floating_footer @reset_form = self.class.reset_form end
Calls superclass method
ActiveScaffold::Config::Base::new
Public Instance Methods
Source
# File lib/active_scaffold/config/field_search.rb, line 66 def optional_columns return @optional_columns || NO_COLUMNS if frozen? @optional_columns ||= NO_COLUMNS.dup end
Source
# File lib/active_scaffold/config/field_search.rb, line 62 def optional_columns=(optionals) @optional_columns = Array(optionals) end
rarely searched columns may be placed in a hidden subgroup