effective_resources 1.9.7 → 1.9.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 +4 -5
- 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: bc155a948b5a244e8a5c7beaa9d634eb1aab656cde915aecaeba3a3e69fa8d69
|
|
4
|
+
data.tar.gz: 947a11397a9b568cbd29c586fd79e310c4f512bfcf4aed7a8048be567afbadae
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: dbf358c58522cb4153495a960f5f3b46da781d0489149b87cdf4498441582b990c0399982ae3d897277d97433c03d9b1de490c3e4607af1c8ee1f935ca2efdf9
|
|
7
|
+
data.tar.gz: 4ab89fad47f59f7e18ad2ef674589e41a8fb47c4fc6f21133ce0aeccf3b892bb6c5b5832e93c1019ca8682c329b61396f5e69be8e991a6ff31fad69d53dad192
|
|
@@ -125,16 +125,16 @@ module ActsAsStatused
|
|
|
125
125
|
define_method("#{sym}?") { status == sym.to_s }
|
|
126
126
|
define_method("was_#{sym}?") { send("#{sym}_at").present? }
|
|
127
127
|
|
|
128
|
-
unless has_attribute?("#{sym}_at")
|
|
128
|
+
#unless has_attribute?("#{sym}_at")
|
|
129
129
|
define_method("#{sym}_at") { status_steps["#{sym}_at".to_sym] }
|
|
130
130
|
define_method("#{sym}_at=") { |value| status_steps["#{sym}_at".to_sym] = value }
|
|
131
|
-
end
|
|
131
|
+
#end
|
|
132
132
|
|
|
133
|
-
unless has_attribute?("#{sym}_by_id")
|
|
133
|
+
#unless has_attribute?("#{sym}_by_id")
|
|
134
134
|
define_method("#{sym}_by") { acts_as_statused_by_user(sym) }
|
|
135
135
|
define_method("#{sym}_by_id") { status_steps["#{sym}_by".to_sym] }
|
|
136
136
|
define_method("#{sym}_by_id=") { |value| status_steps["#{sym}_by".to_sym] = value }
|
|
137
|
-
end
|
|
137
|
+
#end
|
|
138
138
|
|
|
139
139
|
# approved!
|
|
140
140
|
define_method("#{sym}!") do |atts = {}|
|
|
@@ -180,4 +180,3 @@ module ActsAsStatused
|
|
|
180
180
|
end
|
|
181
181
|
|
|
182
182
|
end
|
|
183
|
-
|
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.9.
|
|
4
|
+
version: 1.9.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: 2021-
|
|
11
|
+
date: 2021-12-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|