Sha256: b73635b743a3139c71e82e3d08d6e7eee3f20e26266c390bcb0a913c625e7566

Contents?: true

Size: 386 Bytes

Versions: 2

Compression:

Stored size: 386 Bytes

Contents

class NotificationsController < ApplicationController
  skip_before_action :verify_authenticity_token
  before_action :load_section

  def index
    @notifications = Notification.all
  end

  def destroy
    notification = Notification.find(params[:id])
    notification.destroy
    redirect_to action: :index
  end

  private
  def load_section
    @section = 'notifications'
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
redis_monitor-0.3.2 lib/engine/app/controllers/notifications_controller.rb
redis_monitor-0.3 lib/engine/app/controllers/notifications_controller.rb