Class: Sincerely::NotificationsController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- Sincerely::NotificationsController
- Defined in:
- app/controllers/sincerely/notifications_controller.rb
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
9 10 11 12 13 14 |
# File 'app/controllers/sincerely/notifications_controller.rb', line 9 def index @pagination = paginate(filtered_notifications) @notifications = @pagination[:records] @templates = available_templates @states = available_states end |
#show ⇒ Object
16 17 18 19 20 |
# File 'app/controllers/sincerely/notifications_controller.rb', line 16 def show @notification = find_notification @template = @notification.template @timeline = build_event_timeline end |