Module: ActiveScaffold::Finder
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/active_scaffold/finder.rb
Defined Under Namespace
Modules: ClassMethods
Constant Summary collapse
- NumericComparators =
[ '=', '>=', '<=', '>', '<', '!=', 'BETWEEN' ]
- StringComparators =
{ :contains => '%?%', :begins_with => '?%', :ends_with => '%?' }
- NullComparators =
[ :null, :not_null ]
Class Method Summary collapse
Class Method Details
.like_operator ⇒ Object
9 10 11 |
# File 'lib/active_scaffold/finder.rb', line 9 def self.like_operator @@like_operator ||= ::ActiveRecord::Base.connection.adapter_name == "PostgreSQL" ? "ILIKE" : "LIKE" end |