Module: ActiveRecord

Defined in:
lib/other_joins/other_joins_way.rb,
lib/other_joins/activerecord-3/active_record.rb,
lib/other_joins/activerecord-4.0/active_record.rb,
lib/other_joins/activerecord-4.1/active_record.rb,
lib/other_joins/activerecord-3/left_join_dependency.rb,
lib/other_joins/activerecord-4.0/left_join_dependency.rb,
lib/other_joins/activerecord-4.1/left_join_dependency.rb

Defined Under Namespace

Modules: Associations, Querying Classes: Base, InvalidActiveRecordVersion, Relation

Constant Summary collapse

OTHER_JOINS_WAY =
case
when ActiveRecord::VERSION::STRING =~ /^3/
  3
when ActiveRecord::VERSION::STRING =~ /^4.0/
  4.0
when ActiveRecord::VERSION::STRING =~ /^4.[1,2]/
  4.1
else
  raise InvalidActiveRecordVersion, "Gem 'other_joins #{OtherJoins::VERSION}' cannot work with 'activerecord #{ActiveRecord.version}'"
end