Sha256: e5752a4bfb4b7ac505990425b6d6c1ad504e75784c70885d4757c7258005183d
Contents?: true
Size: 782 Bytes
Versions: 2
Compression:
Stored size: 782 Bytes
Contents
require 'active_support/core_ext' require 'ransack/configuration' require 'ransack/adapters' require '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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ransack-2.3.2 | lib/ransack.rb |
ransack-2.3.1 | lib/ransack.rb |