aboutsummaryrefslogtreecommitdiffstats
path: root/config/initializers/squeel.rb
blob: 9fb8b24b20125a033636c017c36e30c1b3f3877e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Squeel.configure do |config|
  # To load hash extensions (to allow for AND (&), OR (|), and NOT (-) against
  # hashes of conditions):
  #
  # config.load_core_extensions :hash

  # To load symbol extensions (for a subset of the old MetaWhere functionality,
  # via Arel predicate methods on Symbols: :name.matches, etc):
  #
  # NOTE: Not recommended. Learn the new DSL. Use it. Love it.
  #
  # config.load_core_extensions :symbol

  # To load both hash and symbol extensions:
  #
  # config.load_core_extensions :hash, :symbol

  # Alias an existing predicate to a new name. Use the non-grouped
  # name -- the any/all variants will also be created. For example,
  # to alias the standard "lt" predicate to "less_than", and gain
  # "less_than_any" and "less_than_all" as well:
  #
  # config.alias_predicate :less_than, :lt
# end