module ActiveRecord::HashOptions::Helpers
Public Instance Methods
contains(val)
click to toggle source
# File lib/active_record/hash_options/helpers.rb, line 16 def contains(val) ; ActiveRecord::HashOptions::LIKE.new("%#{val}%"); end
ends_with(val)
click to toggle source
# File lib/active_record/hash_options/helpers.rb, line 15 def ends_with(val) ; ActiveRecord::HashOptions::LIKE.new("%#{val}"); end
gt(val)
click to toggle source
numeric
# File lib/active_record/hash_options/helpers.rb, line 6 def gt(val); ActiveRecord::HashOptions::GT.new(val); end
gte(val)
click to toggle source
# File lib/active_record/hash_options/helpers.rb, line 8 def gte(val); ActiveRecord::HashOptions::GTE.new(val); end
ilike(val)
click to toggle source
# File lib/active_record/hash_options/helpers.rb, line 19 def ilike(val); ActiveRecord::HashOptions::ILIKE.new(val); end
insensitive(val)
click to toggle source
string
# File lib/active_record/hash_options/helpers.rb, line 12 def insensitive(val); ActiveRecord::HashOptions::INSENSITIVE.new(val); end
like(val)
click to toggle source
# File lib/active_record/hash_options/helpers.rb, line 18 def like(val); ActiveRecord::HashOptions::LIKE.new(val); end
lt(val)
click to toggle source
# File lib/active_record/hash_options/helpers.rb, line 7 def lt(val); ActiveRecord::HashOptions::LT.new(val); end
lte(val)
click to toggle source
# File lib/active_record/hash_options/helpers.rb, line 9 def lte(val); ActiveRecord::HashOptions::LTE.new(val); end
not_like(val)
click to toggle source
# File lib/active_record/hash_options/helpers.rb, line 17 def not_like(val) ; ActiveRecord::HashOptions::NOT_LIKE.new(val); end
starts_with(val)
click to toggle source
# File lib/active_record/hash_options/helpers.rb, line 14 def starts_with(val) ; ActiveRecord::HashOptions::LIKE.new("#{val}%"); end