Module: ConsolidatedOpeningReminderMailerHelper

Includes:
ApplicationNotificationsHelper
Defined in:
app/helpers/consolidated_opening_reminder_mailer_helper.rb

Instance Method Summary collapse

Methods included from ApplicationNotificationsHelper

#notification_directory_path, #notification_view_path

Instance Method Details

#actable_type_partial_path(notification, actable_type) ⇒ String

Returns the view path of the actable type

Parameters:

  • notification (Course::Notification)

    The notification object

  • actable_type (String)

    The lesson plan actable type as a String

Returns:

  • (String)

    The view path of the actable type


10
11
12
# File 'app/helpers/consolidated_opening_reminder_mailer_helper.rb', line 10

def actable_type_partial_path(notification, actable_type)
  "#{notification_directory_path(notification)}/#{actable_type.underscore}"
end