module Refusable
Constants
- REASON_FOR_REFUSAL_REQUIRES_NOTES
Public Instance Methods
Source
# File app/models/concerns/refusable.rb, line 36 def hard_refusal? = response_refused? && !follow_up_requested? def refusal_with_follow_up? = response_refused? && follow_up_requested? def requires_reason_for_refusal? response_refused? end def reason_for_refusal_requires_notes? reason_for_refusal.in?(REASON_FOR_REFUSAL_REQUIRES_NOTES) end def requires_notes? requires_reason_for_refusal? && reason_for_refusal_requires_notes? end
Source
# File app/models/concerns/refusable.rb, line 44 def reason_for_refusal_requires_notes? reason_for_refusal.in?(REASON_FOR_REFUSAL_REQUIRES_NOTES) end
Source
# File app/models/concerns/refusable.rb, line 38 def refusal_with_follow_up? = response_refused? && follow_up_requested? def requires_reason_for_refusal? response_refused? end def reason_for_refusal_requires_notes? reason_for_refusal.in?(REASON_FOR_REFUSAL_REQUIRES_NOTES) end def requires_notes? requires_reason_for_refusal? && reason_for_refusal_requires_notes? end end
Source
# File app/models/concerns/refusable.rb, line 48 def requires_notes? requires_reason_for_refusal? && reason_for_refusal_requires_notes? end
Source
# File app/models/concerns/refusable.rb, line 40 def requires_reason_for_refusal? response_refused? end