Sha256: c943d77640cac738ef636665933b10fd4f4120a5a5032516b93576648c151b59
Contents?: true
Size: 685 Bytes
Versions: 5
Compression:
Stored size: 685 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
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
ransack-1.5.1 | lib/ransack.rb |
ransack-1.5.0 | lib/ransack.rb |
ransack-1.4.1 | lib/ransack.rb |
ransack-1.4.0 | lib/ransack.rb |
ransack-1.3.0 | lib/ransack.rb |