Sha256: 049908d9322658ad3dacb7355865fbb65207d9d2e6ef184acd735d46b954b058

Contents?: true

Size: 752 Bytes

Versions: 1

Compression:

Stored size: 752 Bytes

Contents

require "polyamorous/version"

module Polyamorous
  if defined?(::ActiveRecord::Associations::JoinDependency)
    JoinDependency  = ::ActiveRecord::Associations::JoinDependency
    JoinAssociation = ::ActiveRecord::Associations::JoinDependency::JoinAssociation
  else
    JoinDependency  = ::ActiveRecord::Associations::ClassMethods::JoinDependency
    JoinAssociation = ::ActiveRecord::Associations::ClassMethods::JoinDependency::JoinAssociation
  end
end

require 'active_record'
require 'polyamorous/join'
require 'polyamorous/join_association'
require 'polyamorous/join_dependency'

Polyamorous::JoinDependency.send(:include, Polyamorous::JoinDependencyExtensions)
Polyamorous::JoinAssociation.send(:include, Polyamorous::JoinAssociationExtensions)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
polyamorous-0.5.0 lib/polyamorous.rb