Sha256: 030fac24e7f60c31e7d120fef185ea0effb39e36db0b9500e92925ae2e808b28

Contents?: true

Size: 682 Bytes

Versions: 4

Compression:

Stored size: 682 Bytes

Contents

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
  end

  Ransack::Constants::DERIVED_PREDICATES.each do |args|
    config.add_predicate *args
  end
end

require 'ransack/translate'
require 'ransack/search'
require 'ransack/ransacker'
require 'ransack/adapters/active_record' if defined?(::ActiveRecord::Base)
require 'ransack/helpers'
require 'action_controller'

ActionController::Base.helper Ransack::Helpers::FormHelper

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ransack-1.2.3 lib/ransack.rb
ransack-1.2.2 lib/ransack.rb
ransack-1.2.1 lib/ransack.rb
ransack-1.2.0 lib/ransack.rb