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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 700cbdcbf2d4c8e3c09f7ea06e4ceef0ec2fe6df
|
4
|
+
data.tar.gz: da91d7bfd8bb1871910ff25bf314e089851b0933
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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,
|
15
|
-
resource.assign_attributes(to_assign)
|
14
|
+
def save_resource(resource, action = :save, &block)
|
16
15
|
resource.save!
|
17
16
|
end
|
18
17
|
|
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
|
+
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-
|
11
|
+
date: 2018-09-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|