Sha256: 67fd9871f75f7f8ff85d88944d5cc28f34dd023fda7729c52b505c8ce72fe00f

Contents?: true

Size: 615 Bytes

Versions: 18

Compression:

Stored size: 615 Bytes

Contents

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

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

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
ransack-1.0.0 lib/ransack.rb
ransack-0.7.2 lib/ransack.rb
ransack-0.7.1 lib/ransack.rb
ransack-0.7.0 lib/ransack.rb
ransack-0.6.0 lib/ransack.rb
ransack-0.5.8 lib/ransack.rb
ransack-0.5.7 lib/ransack.rb
ransack-0.5.6 lib/ransack.rb
ransack-0.5.5 lib/ransack.rb
ransack-0.5.4 lib/ransack.rb
ransack-0.5.3 lib/ransack.rb
ransack-0.5.2 lib/ransack.rb
ransack-0.5.1 lib/ransack.rb
ransack-0.5.0 lib/ransack.rb
ransack-0.4.2 lib/ransack.rb
ransack-0.4.1 lib/ransack.rb
ransack-0.4.0 lib/ransack.rb
ransack-0.3.0 lib/ransack.rb