Sha256: 7c4885964f3f6e72707c6a263cab4dfebca81e8359f033b6fbae71c4a9d127b8

Contents?: true

Size: 786 Bytes

Versions: 8

Compression:

Stored size: 786 Bytes

Contents

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

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/helpers'
require 'action_controller'
require 'ransack/translate'

Ransack::Adapters.object_mapper.require_adapter

ActiveSupport.on_load(:action_controller) do
  ActionController::Base.helper Ransack::Helpers::FormHelper
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
ransack-1.8.10 lib/ransack.rb
ransack-2.1.1 lib/ransack.rb
ransack-2.1.0 lib/ransack.rb
ransack-2.0.1 lib/ransack.rb
ransack-2.0.0 lib/ransack.rb
ransack-1.8.9 lib/ransack.rb
ransack-1.8.8 lib/ransack.rb
ransack-1.8.7 lib/ransack.rb