Sha256: eb6cc4960d9aa9f326ecbab2fb5b7d2e00c5e8e1ba5372b1eafff169252119b5

Contents?: true

Size: 793 Bytes

Versions: 10

Compression:

Stored size: 793 Bytes

Contents

require 'active_support/core_ext'
require 'ransack/configuration'
require 'ransack/adapters'
require 'polyamorous/polyamorous'

Ransack::Adapters.object_mapper.require_constants

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
  end
  Ransack::Constants::DERIVED_PREDICATES.each do |args|
    config.add_predicate(*args)
  end
end

require 'ransack/search'
require 'ransack/ransacker'
require 'ransack/translate'

Ransack::Adapters.object_mapper.require_adapter

ActiveSupport.on_load(:action_controller) do
  require 'ransack/helpers'
  ActionController::Base.helper Ransack::Helpers::FormHelper
end

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
ransack-3.2.1 lib/ransack.rb
ransack-3.2.0 lib/ransack.rb
ransack-3.1.0 lib/ransack.rb
ransack-3.0.1 lib/ransack.rb
ransack-3.0.0 lib/ransack.rb
ransack-2.6.0 lib/ransack.rb
ransack-2.5.0 lib/ransack.rb
date_n_time_picker_activeadmin-0.1.2 vendor/bundle/ruby/2.6.0/gems/ransack-2.4.2/lib/ransack.rb
date_n_time_picker_activeadmin-0.1.1 vendor/bundle/ruby/2.6.0/gems/ransack-2.4.2/lib/ransack.rb
ransack-2.4.2 lib/ransack.rb