class Imports::NoticesController
Public Instance Methods
Source
# File app/controllers/imports/notices_controller.rb, line 17 def destroy @notice.dismiss!(user: current_user) redirect_to imports_notices_path, flash: { success: "Notice dismissed" } end
Source
# File app/controllers/imports/notices_controller.rb, line 8 def index authorize ImportantNotice @notices = policy_scope(ImportantNotice).order(recorded_at: :desc) end