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.
@@ -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 :invite_remind
198
- when persisted? && !recipient then :notify_remind
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
@@ -1,3 +1,3 @@
1
1
  module Proposal
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end