Sha256: 4f1c80fd05acbe92d6c94f3f769742d8f72ea84b65e2b50be9540c24d72be2c7

Contents?: true

Size: 495 Bytes

Versions: 25

Compression:

Stored size: 495 Bytes

Contents

# This sets up aliases for old Metasearch query methods so they behave
# identically to the versions given in Ransack.
#
Ransack.configure do |config|
  {'contains'=>'cont', 'starts_with'=>'start', 'ends_with'=>'end'}.each do |old,current|
    config.add_predicate old, Ransack::Constants::DERIVED_PREDICATES.detect{ |q, _| q == current }[1]
  end

  {'equals'=>'eq', 'greater_than'=>'gt', 'less_than'=>'lt'}.each do |old,current|
    config.add_predicate old, arel_predicate: current
  end
end

Version data entries

25 entries across 25 versions & 5 rubygems

Version Path
activeadmin_addons-1.1.2 vendor/bundle/ruby/2.3.0/bundler/gems/activeadmin-a5a53c3f2b8f/lib/ransack_ext.rb
activeadmin_addons-1.1.1 vendor/bundle/ruby/2.2.0/bundler/gems/activeadmin-a5a53c3f2b8f/lib/ransack_ext.rb
yousty-activeadmin-1.0.17.pre lib/ransack_ext.rb
yousty-activeadmin-1.0.16.pre lib/ransack_ext.rb
activeadmin_addons-1.1.0 vendor/bundle/ruby/2.2.0/bundler/gems/activeadmin-a5a53c3f2b8f/lib/ransack_ext.rb
activeadmin_addons-1.0.1 vendor/bundle/ruby/2.2.0/bundler/gems/activeadmin-a5a53c3f2b8f/lib/ransack_ext.rb
activeadmin_addons-1.0.0 vendor/bundle/ruby/2.2.0/bundler/gems/activeadmin-a5a53c3f2b8f/lib/ransack_ext.rb
yousty-activeadmin-1.0.15.pre lib/ransack_ext.rb
yousty-activeadmin-1.0.14.pre lib/ransack_ext.rb
yousty-activeadmin-1.0.13.pre lib/ransack_ext.rb
yousty-activeadmin-1.0.12.pre lib/ransack_ext.rb
yousty-activeadmin-1.0.11.pre lib/ransack_ext.rb
yousty-activeadmin-1.0.10.pre lib/ransack_ext.rb
yousty-activeadmin-1.0.9.pre lib/ransack_ext.rb
yousty-activeadmin-1.0.8.pre lib/ransack_ext.rb
activeadmin-1.0.0.pre2 lib/ransack_ext.rb
activeadmin-1.0.0.pre1 lib/ransack_ext.rb
yousty-activeadmin-1.0.7.pre lib/ransack_ext.rb
yousty-activeadmin-1.0.6.pre lib/ransack_ext.rb
yousty-activeadmin-1.0.5.pre lib/ransack_ext.rb