class NotificationsController

Public Instance Methods

destroy() click to toggle source
# 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() click to toggle source
# File lib/engine/app/controllers/notifications_controller.rb, line 5
def index
  @notifications = Notification.paginate(:page => params[:page], :per_page => 20)
end

Private Instance Methods

load_section() click to toggle source
# File lib/engine/app/controllers/notifications_controller.rb, line 16
def load_section
  @section = 'notifications'
end