effective_orders 4.0.0beta6 → 4.0.0beta7

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: 12e3f1de057495a5b6c3dc1b6cbc8127ef8736bf
4
- data.tar.gz: d30298b8aac6de0afee57cc5e9af2552b01d5519
3
+ metadata.gz: 18089b6f65a77083a900dfbbcc8cdb54e17b8b38
4
+ data.tar.gz: caaf724407161e9323c9ba948787a5b1a0a8b242
5
5
  SHA512:
6
- metadata.gz: 9524eb918036d200c9d51f5c383e37a05afd43448dffb67e58d25bb43770a20f01e99ff4e09093f86d25d6506c28f7b859848d2c5bef6fe4ca8211b00d6f3b63
7
- data.tar.gz: 020f1ae55841895de717445760e905c5e8640101d47ea05e3bc8327a805c5544cb844a02c70402a0d2e1144551de15e55b82edb2666190ababe141e253e0b1db
6
+ metadata.gz: 4ce26f7074fec26063a6b47d2588be94b7fbacf1358cc69b48a4c64d05aeb92728134330382d09efab59d4fe7afd4aa5a1a8043673cf3befcd6931974dc74b9b
7
+ data.tar.gz: 20d6236ddd583e61d50ee2f5f82bc20f63e2adc0e7d61c5b009682171f1d748e6ba6bbb7d97ee67d272095c9de5c2a96dd4b2f52ef69775ab49ca255411f757c
@@ -13,7 +13,8 @@ module Effective
13
13
  end
14
14
 
15
15
  # I don't want save_resource to wrap my save in a transaction
16
- def save_resource(resource, action)
16
+ def save_resource(resource, action, to_assign)
17
+ resource.assign_attributes(to_assign)
17
18
  resource.save!
18
19
  end
19
20
 
@@ -11,7 +11,8 @@ module Effective
11
11
  end
12
12
 
13
13
  # I don't want save_resource to wrap my save in a transaction
14
- def save_resource(resource, action)
14
+ def save_resource(resource, action, to_assign)
15
+ resource.assign_attributes(to_assign)
15
16
  resource.save!
16
17
  end
17
18
 
@@ -1,3 +1,3 @@
1
1
  module EffectiveOrders
2
- VERSION = '4.0.0beta6'.freeze
2
+ VERSION = '4.0.0beta7'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_orders
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.0beta6
4
+ version: 4.0.0beta7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-04-27 00:00:00.000000000 Z
11
+ date: 2018-05-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails