Sha256: 36b49a9f6d5eff457dc5ab8d31d343968d807917c72cb1779a727487747c6cee

Contents?: true

Size: 439 Bytes

Versions: 1

Compression:

Stored size: 439 Bytes

Contents

require 'active_record'
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/context'
when /^3\.1\./
  require 'ransack/adapters/active_record/3.1/context'
when /^3\.2\./
  require 'ransack/adapters/active_record/3.2/context'
else
  require 'ransack/adapters/active_record/context'
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ransack-1.0.0 lib/ransack/adapters/active_record.rb