Class: NotificationsController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- NotificationsController
- Defined in:
- lib/engine/app/controllers/notifications_controller.rb
Instance Method Summary collapse
Methods inherited from ApplicationController
Instance Method Details
#destroy ⇒ Object
9 10 11 12 13 |
# File 'lib/engine/app/controllers/notifications_controller.rb', line 9 def destroy notification = Notification.find(params[:id]) notification.destroy redirect_to action: :index end |
#index ⇒ Object
5 6 7 |
# File 'lib/engine/app/controllers/notifications_controller.rb', line 5 def index @notifications = Notification.all end |