Sha256: 598d297830f7f761f0cb9a3349cbd01979e6e957ee9f82a3f97e05becebf8f42
Contents?: true
Size: 450 Bytes
Versions: 28
Compression:
Stored size: 450 Bytes
Contents
module NotifyUser module ApplicationHelper 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 def is_unsubscribeable?(notification) return NotifyUser.unsubscribable_notifications.include? notification.type end end end
Version data entries
28 entries across 28 versions & 1 rubygems