Module: NotifyUser::ApplicationHelper
- Defined in:
- app/helpers/notify_user/application_helper.rb
Instance Method Summary collapse
Instance Method Details
#is_unsubscribeable?(notification) ⇒ Boolean
9 10 11 |
# File 'app/helpers/notify_user/application_helper.rb', line 9 def is_unsubscribeable?(notification) return NotifyUser.unsubscribable_notifications.include? notification.type end |
#unsubscribe_link(notification, text) ⇒ Object
3 4 5 6 7 |
# File 'app/helpers/notify_user/application_helper.rb', line 3 def unsubscribe_link(notification, text) user_hash = notification.generate_unsubscribe_hash html = link_to(text, notify_user_notifications_unauth_unsubscribe_url(:type => notification.type, :token => user_hash.token)) return html.to_s.html_safe end |