polyamorous 0.6.2 → 0.6.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/polyamorous.rb +7 -0
- data/lib/polyamorous/version.rb +1 -1
- metadata +4 -4
data/lib/polyamorous.rb
CHANGED
@@ -5,9 +5,11 @@ module Polyamorous
|
|
5
5
|
if defined?(::ActiveRecord::Associations::JoinDependency)
|
6
6
|
JoinDependency = ::ActiveRecord::Associations::JoinDependency
|
7
7
|
JoinAssociation = ::ActiveRecord::Associations::JoinDependency::JoinAssociation
|
8
|
+
JoinBase = ::ActiveRecord::Associations::JoinDependency::JoinBase
|
8
9
|
else
|
9
10
|
JoinDependency = ::ActiveRecord::Associations::ClassMethods::JoinDependency
|
10
11
|
JoinAssociation = ::ActiveRecord::Associations::ClassMethods::JoinDependency::JoinAssociation
|
12
|
+
JoinBase = ::ActiveRecord::Associations::ClassMethods::JoinDependency::JoinBase
|
11
13
|
end
|
12
14
|
end
|
13
15
|
|
@@ -17,3 +19,8 @@ require 'polyamorous/join_dependency'
|
|
17
19
|
|
18
20
|
Polyamorous::JoinDependency.send(:include, Polyamorous::JoinDependencyExtensions)
|
19
21
|
Polyamorous::JoinAssociation.send(:include, Polyamorous::JoinAssociationExtensions)
|
22
|
+
Polyamorous::JoinBase.class_eval do
|
23
|
+
if method_defined?(:active_record)
|
24
|
+
alias_method :base_klass, :active_record
|
25
|
+
end
|
26
|
+
end
|
data/lib/polyamorous/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: polyamorous
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-05-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activerecord
|
@@ -136,7 +136,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
136
136
|
version: '0'
|
137
137
|
segments:
|
138
138
|
- 0
|
139
|
-
hash:
|
139
|
+
hash: -3873183726189601663
|
140
140
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
141
141
|
none: false
|
142
142
|
requirements:
|
@@ -145,7 +145,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
145
145
|
version: '0'
|
146
146
|
segments:
|
147
147
|
- 0
|
148
|
-
hash:
|
148
|
+
hash: -3873183726189601663
|
149
149
|
requirements: []
|
150
150
|
rubyforge_project: polyamorous
|
151
151
|
rubygems_version: 1.8.25
|