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

Version Path
notify_user-0.3.2 app/helpers/notify_user/application_helper.rb
notify_user-0.3.1 app/helpers/notify_user/application_helper.rb
notify_user-0.1.4 app/helpers/notify_user/application_helper.rb
notify_user-0.1.3 app/helpers/notify_user/application_helper.rb
notify_user-0.1.2 app/helpers/notify_user/application_helper.rb
notify_user-0.1.1 app/helpers/notify_user/application_helper.rb
notify_user-0.0.30 app/helpers/notify_user/application_helper.rb
notify_user-0.0.29 app/helpers/notify_user/application_helper.rb
notify_user-0.0.28 app/helpers/notify_user/application_helper.rb
notify_user-0.0.27 app/helpers/notify_user/application_helper.rb
notify_user-0.0.26 app/helpers/notify_user/application_helper.rb
notify_user-0.0.25 app/helpers/notify_user/application_helper.rb
notify_user-0.0.24 app/helpers/notify_user/application_helper.rb
notify_user-0.0.23 app/helpers/notify_user/application_helper.rb
notify_user-0.0.22 app/helpers/notify_user/application_helper.rb
notify_user-0.0.20 app/helpers/notify_user/application_helper.rb
notify_user-0.0.19 app/helpers/notify_user/application_helper.rb
notify_user-0.0.18 app/helpers/notify_user/application_helper.rb
notify_user-0.0.16 app/helpers/notify_user/application_helper.rb
notify_user-0.0.15 app/helpers/notify_user/application_helper.rb