Sha256: ce5fd8e5e79ec9401c43052e2d83bc08139532ad1fc9d359734fb3b7a8e1ea9d

Contents?: true

Size: 874 Bytes

Versions: 3

Compression:

Stored size: 874 Bytes

Contents

case ActiveRecord::VERSION::STRING
when /^3\.0\./
  require 'ransack/adapters/active_record/3.0/base'
  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::Base.extend Ransack::Adapters::ActiveRecord::Base
  ActiveRecord::Associations::ClassMethods::JoinDependency.send :include, Ransack::Adapters::ActiveRecord::JoinDependency
else
  require 'ransack/adapters/active_record/base'
  require 'ransack/adapters/active_record/join_dependency'
  require 'ransack/adapters/active_record/join_association'
  require 'ransack/adapters/active_record/context'

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ransack-0.3.0 lib/ransack/adapters/active_record.rb
ransack-0.2.1 lib/ransack/adapters/active_record.rb
ransack-0.2.0 lib/ransack/adapters/active_record.rb