effective_orders 4.0.4 → 4.0.5

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: ccd919fac89380ee983e9da71cfe60e6ac604764
4
- data.tar.gz: 85723b667b0036fae5db2dd3a702ffe321ec6be7
3
+ metadata.gz: 700cbdcbf2d4c8e3c09f7ea06e4ceef0ec2fe6df
4
+ data.tar.gz: da91d7bfd8bb1871910ff25bf314e089851b0933
5
5
  SHA512:
6
- metadata.gz: 39ed91ccaa715fe77a7cc36e17917cf88e79980765e9b24dd10be551a5374b4aee047250b06d00bdef547edf52f895d654446cf3ffcd8a829b75fcacf6a56094
7
- data.tar.gz: ec56c3a432ec2db5fc6edb385cdef06daeb9c40a1e4e3d3388dff4ca1b8f687a4ab4f4ffa96c3e8e4f5c454d47a8cdd42a6bcda4e0c1353baada7a6c4872dbf0
6
+ metadata.gz: b97149459463c09176d85d5b4b1e889152ff80e16cbde79d0246bd76abb01cec7c54752d4d0f097eba5c30b75338ac76bd20495a562ee76443c96f8f2825443c
7
+ data.tar.gz: d87291e2f9884e43a0976345079b2d0e6c014ce299e7641bcc1ca3d7fdcbb549c4f6b27f8885965b219c7e9a10c729df9fb88bc6d1f9507f0216f14b40da89a3
@@ -11,8 +11,7 @@ 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, to_assign)
15
- resource.assign_attributes(to_assign)
14
+ def save_resource(resource, action = :save, &block)
16
15
  resource.save!
17
16
  end
18
17
 
@@ -1,3 +1,3 @@
1
1
  module EffectiveOrders
2
- VERSION = '4.0.4'.freeze
2
+ VERSION = '4.0.5'.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.4
4
+ version: 4.0.5
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-08-03 00:00:00.000000000 Z
11
+ date: 2018-09-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails