acts_as_living 0.1.18 → 0.1.19
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/acts_as_living/methods_definer.rb +5 -5
- data/lib/acts_as_living/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 159567b51bd98c24c6fda7a46ebad69c69914d6ba292b5fc854c607723933ea8
|
4
|
+
data.tar.gz: dd7717e7d774dee7b9b2c536869186036f602bcae22c58677706486ab90e1d04
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 137fd75859aae03b7598a8999b97bcde0f38329bf7c59e43802f50e6356a5b3dea39617522af2c9115731df054aa936dd2effa864a39d25d7f8a1adf92e4c337
|
7
|
+
data.tar.gz: 67a5d0b66bc15ac8ab19a81e8ca46bbb4001d4784eaf0fd3224ae56f01d341b813be624a5f6cfa1640f1821bf8839410ae6c0c9f1cfc074b663f663f2aecb107
|
@@ -140,7 +140,7 @@ module ActsAsLiving::MethodsDefiner
|
|
140
140
|
end
|
141
141
|
|
142
142
|
def last_stage?(stage)
|
143
|
-
last_stage == stage
|
143
|
+
last_stage.to_s == stage.to_s
|
144
144
|
end
|
145
145
|
|
146
146
|
def first_stage
|
@@ -148,7 +148,7 @@ module ActsAsLiving::MethodsDefiner
|
|
148
148
|
end
|
149
149
|
|
150
150
|
def first_stage?(stage)
|
151
|
-
first_stage == stage
|
151
|
+
first_stage.to_s == stage.to_s
|
152
152
|
end
|
153
153
|
|
154
154
|
def death
|
@@ -194,11 +194,11 @@ module ActsAsLiving::MethodsDefiner
|
|
194
194
|
|
195
195
|
def define_stage_queries(stage_key)
|
196
196
|
define_method("stage_changed_to_#{stage_key}?") do
|
197
|
-
stage_changed? && stage_was == stage_key
|
197
|
+
stage_changed? && stage_was.to_s == stage_key.to_s
|
198
198
|
end
|
199
199
|
|
200
200
|
define_method("stage_saved_to_#{stage_key}?") do
|
201
|
-
saved_change_to_stage? && stage == stage_key
|
201
|
+
saved_change_to_stage? && stage.to_s == stage_key.to_s
|
202
202
|
end
|
203
203
|
|
204
204
|
define_method("pre_#{stage_key}?") do
|
@@ -210,7 +210,7 @@ module ActsAsLiving::MethodsDefiner
|
|
210
210
|
end
|
211
211
|
|
212
212
|
define_method("cancelled_from_#{stage_key}?") do
|
213
|
-
stage == 'cancelled' && stage_was == stage_key
|
213
|
+
stage == 'cancelled' && stage_was.to_s == stage_key.to_s
|
214
214
|
end
|
215
215
|
end
|
216
216
|
end
|