module NotificationsHelper
Public Instance Methods
notification_company_address()
click to toggle source
# File lib/generators/notifykit/templates/app/helpers/notifications_helper.rb, line 7 def notification_company_address # TODO According to CANSPAM you must include company contact information <% if options.test_mode? %>"Test Company Address"<% end %> end
notification_company_logo()
click to toggle source
# File lib/generators/notifykit/templates/app/helpers/notifications_helper.rb, line 12 def notification_company_logo # TODO Add a company logo that will show in your emails <% if options.test_mode? %>notification_company_name<% end %> end
notification_company_name()
click to toggle source
# File lib/generators/notifykit/templates/app/helpers/notifications_helper.rb, line 2 def notification_company_name # TODO According to CANSPAM you must include company contact information <% if options.test_mode? %>"Test Company"<% end %> end
recent_notifications()
click to toggle source
# File lib/generators/notifykit/templates/app/helpers/notifications_helper.rb, line 17 def recent_notifications return @recent_notifications if defined?(@recent_notifications) @recent_notifications = current_user && current_user.notifications.recent end