Sha256: 5102b8f773e0d5c1317b545d3a06b2ab7893afea4f8853ab79a515d9079ad6b1

Contents?: true

Size: 728 Bytes

Versions: 3

Compression:

Stored size: 728 Bytes

Contents

module NotificationsHelper
  def notification_company_name
    # TODO According to CANSPAM you must include company contact information
    <% if options.test_mode? %>"Test Company"<% end %>
  end

  def notification_company_address
    # TODO According to CANSPAM you must include company contact information
    <% if options.test_mode? %>"Test Company Address"<% end %>
  end

  def notification_company_logo
    # TODO Add a company logo that will show in your emails
    <% if options.test_mode? %>notification_company_name<% end %>
  end

  def recent_notifications
    return @recent_notifications if defined?(@recent_notifications)
    @recent_notifications = current_user && current_user.notifications.recent
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
notifykit-0.3.0 lib/generators/notifykit/templates/app/helpers/notifications_helper.rb
notifykit-0.2.0 lib/generators/notifykit/templates/app/helpers/notifications_helper.rb
notifykit-0.1.0 lib/generators/notifykit/templates/app/helpers/notifications_helper.rb