ar-simple-idmap 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.4
1
+ 0.1.5
@@ -4,13 +4,15 @@ module ActiveRecord
4
4
  module ClassMethods
5
5
  private
6
6
  def use_id_map
7
- extend IdMapClassMethods
8
- include IdMapInstanceMethods
9
- class << self
10
- alias_method_chain :find, :identity_map
11
- alias_method_chain :instantiate, :identity_map
12
- end
13
- alias_method_chain :create, :identity_map
7
+ unless is_a? IdMapClassMethods
8
+ extend IdMapClassMethods
9
+ include IdMapInstanceMethods
10
+ class << self
11
+ alias_method_chain :find, :identity_map
12
+ alias_method_chain :instantiate, :identity_map
13
+ end
14
+ alias_method_chain :create, :identity_map
15
+ end
14
16
  end
15
17
  end
16
18
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ar-simple-idmap
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 4
10
- version: 0.1.4
9
+ - 5
10
+ version: 0.1.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Sokolov Yura aka funny_falcon