Sha256: 29c274dc740d31b387e230b6ed82828a9345c46a49bb896387325fdd5b8d4f34

Contents?: true

Size: 753 Bytes

Versions: 10

Compression:

Stored size: 753 Bytes

Contents

require 'ransack/adapters/active_record/base'
ActiveRecord::Base.extend Ransack::Adapters::ActiveRecord::Base

case ActiveRecord::VERSION::STRING
when /^3\.0\./
  require 'ransack/adapters/active_record/3.0/join_dependency'
  require 'ransack/adapters/active_record/3.0/join_association'
  require 'ransack/adapters/active_record/3.0/context'

  ActiveRecord::Associations::ClassMethods::JoinDependency.send :include, Ransack::Adapters::ActiveRecord::JoinDependency
else
  require 'ransack/adapters/active_record/join_dependency'
  require 'ransack/adapters/active_record/join_association'
  require 'ransack/adapters/active_record/context'

  ActiveRecord::Associations::JoinDependency.send :include, Ransack::Adapters::ActiveRecord::JoinDependency
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
ransack-0.5.6 lib/ransack/adapters/active_record.rb
ransack-0.5.5 lib/ransack/adapters/active_record.rb
ransack-0.5.4 lib/ransack/adapters/active_record.rb
ransack-0.5.3 lib/ransack/adapters/active_record.rb
ransack-0.5.2 lib/ransack/adapters/active_record.rb
ransack-0.5.1 lib/ransack/adapters/active_record.rb
ransack-0.5.0 lib/ransack/adapters/active_record.rb
ransack-0.4.2 lib/ransack/adapters/active_record.rb
ransack-0.4.1 lib/ransack/adapters/active_record.rb
ransack-0.4.0 lib/ransack/adapters/active_record.rb