lib/ransack.rb in ransack-1.1.0 vs lib/ransack.rb in ransack-1.2.0

- old
+ new

@@ -1,16 +1,18 @@ +require 'active_support/core_ext' + require 'ransack/configuration' module Ransack extend Configuration class UntraversableAssociationError < StandardError; end; end Ransack.configure do |config| Ransack::Constants::AREL_PREDICATES.each do |name| - config.add_predicate name, :arel_predicate => name + config.add_predicate name, arel_predicate: name end Ransack::Constants::DERIVED_PREDICATES.each do |args| config.add_predicate *args end @@ -21,6 +23,6 @@ require 'ransack/ransacker' require 'ransack/adapters/active_record' if defined?(::ActiveRecord::Base) require 'ransack/helpers' require 'action_controller' -ActionController::Base.helper Ransack::Helpers::FormHelper \ No newline at end of file +ActionController::Base.helper Ransack::Helpers::FormHelper