effective_resources 1.3.7 → 1.3.8
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 +4 -4
- data/app/models/concerns/acts_as_statused.rb +12 -4
- data/lib/effective_resources/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9765848b329e9045efb497fd2f14866d1de0aced5bd496a58c2fd43c62ac058c
|
|
4
|
+
data.tar.gz: '0699ac9422d95953b2351f188da65368296b87a87297477ac53c516db774c4d2'
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 142c69175e7a513a39a4bd5671055da372a157667e5d4b24d442e2cf2b6b505b6676da2a748edcbd003d08bd8f53e86ce4901bec143b4973fdd71bcb55266185
|
|
7
|
+
data.tar.gz: 6bf8f1ed1a7acef180b68ef03e5df2865451badae4899ccbcc3ff007c388d0948bd6ec0471bcc4dcc29a5426cc8affb4a921dbc61da2e740168895b205a4be07
|
|
@@ -128,16 +128,24 @@ module ActsAsStatused
|
|
|
128
128
|
define_method("#{sym}_at") { status_steps["#{sym}_at".to_sym] }
|
|
129
129
|
end
|
|
130
130
|
|
|
131
|
+
unless respond_to?("#{sym}_at=")
|
|
132
|
+
define_method("#{sym}_at=") { |value| status_steps["#{sym}_at".to_sym] = value }
|
|
133
|
+
end
|
|
134
|
+
|
|
131
135
|
unless respond_to?("#{sym}_by")
|
|
132
|
-
define_method("#{sym}_by") { acts_as_statused_by_user(sym) }
|
|
136
|
+
define_method("#{sym}_by") { acts_as_statused_by_user(sym) }
|
|
133
137
|
end
|
|
134
138
|
|
|
135
139
|
unless respond_to?("#{sym}_by_id")
|
|
136
|
-
define_method("#{sym}_by_id") { status_steps["#{sym}_by".to_sym] }
|
|
140
|
+
define_method("#{sym}_by_id") { status_steps["#{sym}_by".to_sym] }
|
|
141
|
+
end
|
|
142
|
+
|
|
143
|
+
unless respond_to?("#{sym}_by_id=")
|
|
144
|
+
define_method("#{sym}_by_id=") { |value| status_steps["#{sym}_by".to_sym] = value }
|
|
137
145
|
end
|
|
138
146
|
|
|
139
147
|
unless respond_to?("was_#{sym}?")
|
|
140
|
-
define_method("was_#{sym}?") { send("#{sym}_at").present? }
|
|
148
|
+
define_method("was_#{sym}?") { send("#{sym}_at").present? }
|
|
141
149
|
end
|
|
142
150
|
|
|
143
151
|
# approved!
|
|
@@ -155,7 +163,7 @@ module ActsAsStatused
|
|
|
155
163
|
|
|
156
164
|
status_steps.delete("#{sym}_at".to_sym)
|
|
157
165
|
status_steps.delete("#{sym}_by".to_sym)
|
|
158
|
-
|
|
166
|
+
|
|
159
167
|
true
|
|
160
168
|
end
|
|
161
169
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: effective_resources
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.3.
|
|
4
|
+
version: 1.3.8
|
|
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: 2019-
|
|
11
|
+
date: 2019-07-01 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|