Sha256: b19581c0ea39273e773b327a78dfe1eb6b568a2fe12b60c82cefb8fcd2327590

Contents?: true

Size: 747 Bytes

Versions: 4

Compression:

Stored size: 747 Bytes

Contents

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

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'
require 'ransack/active_record'
require 'ransack/context'
require 'ransack/version'

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

Version data entries

4 entries across 3 versions & 2 rubygems

Version Path
trusty-cms-7.0.9.1 vendor/bundle/ruby/3.1.0/gems/ransack-4.2.1/lib/ransack.rb
trusty-cms-7.0.9.1 vendor/bundle/ruby/3.3.0/gems/ransack-4.2.1/lib/ransack.rb
ransack-4.2.1 lib/ransack.rb
ransack-4.2.0 lib/ransack.rb