deferring 0.1.4 → 0.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d5c5f97f11dea2e2730b11cc50d556e6e8135060
4
- data.tar.gz: e23e07dac4a3027c51e3219a3c32055c2eff75f4
3
+ metadata.gz: 817f36897a24bc0726ce52d33dfc118591fc18da
4
+ data.tar.gz: 6313e1831bf0294321b30daf3933da1891429603
5
5
  SHA512:
6
- metadata.gz: e8855c56699aea80739490f89065dbd7970c3bae9d0c14b44ae21cd5d273b2986a0399e3b79ce665643c944de148885045aec7ca4afe4dfc5702b3cdef1f1093
7
- data.tar.gz: c6b771298d9e90f87a848310f100a3401ae66452fe55f15e3ea395628146ab54292030775301b51d384d0a8201af996612508561d3cc92e6d76c5b178e8212c6
6
+ metadata.gz: 8999de2bd86c4621d82d658b0168339aa0ba42cdd4252be88047e5248ef4d5ac3ac7c85499479a2338c23816a529add87cd613a76e032c57d7e7669dac977561
7
+ data.tar.gz: 5a9ccdc63b1a1c9fa4d1c218ed7343b9c0f2f9b4ccc0609da86c587f08235c42c64f2060d6461127ff2572740762830ec1379b4e9c1af5f8f958e5710c619597
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ../
3
3
  specs:
4
- deferring (0.1.3)
4
+ deferring (0.1.4)
5
5
  activerecord (> 3.0)
6
6
 
7
7
  GEM
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ../
3
3
  specs:
4
- deferring (0.1.3)
4
+ deferring (0.1.4)
5
5
  activerecord (> 3.0)
6
6
 
7
7
  GEM
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ../
3
3
  specs:
4
- deferring (0.1.3)
4
+ deferring (0.1.4)
5
5
  activerecord (> 3.0)
6
6
 
7
7
  GEM
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ../
3
3
  specs:
4
- deferring (0.1.3)
4
+ deferring (0.1.4)
5
5
  activerecord (> 3.0)
6
6
 
7
7
  GEM
data/lib/deferring.rb CHANGED
@@ -78,7 +78,7 @@ module Deferring
78
78
  end
79
79
 
80
80
  elsif existing_record = send(:"#{association_name}").detect { |record| record.id.to_s == attributes['id'].to_s }
81
- if !deferred_call_reject_if(attributes)
81
+ if !send(:"deferred_#{association_name}_call_reject_if", attributes)
82
82
 
83
83
  existing_record.attributes = attributes.except(*deferred_unassignable_keys)
84
84
 
@@ -92,7 +92,7 @@ module Deferring
92
92
  end
93
93
 
94
94
  else # new record referenced by id
95
- if !deferred_call_reject_if(attributes)
95
+ if !send(:"deferred_#{association_name}_call_reject_if", attributes)
96
96
  klass = self.class.reflect_on_association(:"#{association_name}").klass
97
97
 
98
98
  attribute_ids = attributes_collection.map { |a| a['id'] || a[:id] }.compact
@@ -1,5 +1,5 @@
1
1
  # encoding: UTF-8
2
2
 
3
3
  module Deferring
4
- VERSION = '0.1.4'
4
+ VERSION = '0.1.5'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: deferring
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robin Roestenburg