selfish_associations 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 746a949567207a7523cd6f4aaefa23b827e3a827
4
- data.tar.gz: cf0ae0cb488d8a90432b1d0ae089788919e1bd7b
3
+ metadata.gz: a331cc1b58e62f5ad94ac9ab5e2842b2ddc56bfe
4
+ data.tar.gz: 8f9062422295b606dfbec4cc9519b4dee98f27e2
5
5
  SHA512:
6
- metadata.gz: 669103d8f7d673a7eefe55b4f746b83d2ac77b926dfa8ad948f6378a196b62b121446269ff532ded8a514e98663a59ac689f2c71270ff28918d5b457f15b0680
7
- data.tar.gz: 2c4f13487d908511a804cf1589fa3cdd951dd1225a0d03946ba2fc55a9904e8142d3f950df51e16bb17fc260898d0fc99b89b7c13bd7d64fdeb3567e82036273
6
+ metadata.gz: 1dec4bee06544fe23094d845e944425e45c266f449d2c7e0d2162e53e1ae7bd0171921204675f5279cb720003e848f6067ae688b7f3d8632201a5f1beae47dac
7
+ data.tar.gz: 5f423f72cc35cf1bbf38a2281bcc0e69a4f54468485945b70a81e0a53a3e4d45a244ad1b1290235adbcce0b4fb03c9366fddf4ef6650b1922518ed7620ae6906
@@ -11,7 +11,7 @@ module SelfishAssociations
11
11
 
12
12
  def add_association(name, assoc)
13
13
  initialize_methods_class
14
- @model.selfish_associations[name] = assoc
14
+ @model.selfish_associations = @model.selfish_associations.merge(name => assoc)
15
15
 
16
16
  @model::SelfishAssociationMethods.class_eval do
17
17
  define_method(name) do |reload = false|
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: selfish_associations
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Schwartz