proposal 0.0.4 → 0.0.5
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.
- data/app/models/proposal/token.rb +6 -2
- data/lib/proposal/version.rb +1 -1
- data/test/dummy/log/test.log +1666 -0
- data/test/proposal_test.rb +23 -7
- metadata +4 -4
@@ -148,6 +148,10 @@ module Proposal
|
|
148
148
|
!expired? && !accepted?
|
149
149
|
end
|
150
150
|
|
151
|
+
def reminded?
|
152
|
+
!reminded_at.nil?
|
153
|
+
end
|
154
|
+
|
151
155
|
# Sets +Time.now+ for the +reminded_at+ field in the database if the
|
152
156
|
# proposal action is +:notify_remind+ or +:invite_remind+. This method can
|
153
157
|
# be called repeatedly.
|
@@ -194,8 +198,8 @@ module Proposal
|
|
194
198
|
# only be called if the the proposable is acceptable.
|
195
199
|
def acceptable_action
|
196
200
|
case
|
197
|
-
when persisted? && recipient then :
|
198
|
-
when persisted? && !recipient then :
|
201
|
+
when persisted? && recipient then :notify_remind
|
202
|
+
when persisted? && !recipient then :invite_remind
|
199
203
|
when recipient.nil? then :invite
|
200
204
|
else :notify
|
201
205
|
end
|
data/lib/proposal/version.rb
CHANGED