Sha256: c08e2d769a56811b3f0a16b3bb07b7884f43c22e3722949eb26c640fa39bc354

Contents?: true

Size: 346 Bytes

Versions: 9

Compression:

Stored size: 346 Bytes

Contents

require_dependency "ominous/application_controller"

module Ominous
  class WarningsController < ApplicationController
    
    def dismiss
      @warning = Warning.find(params[:id])
      session[:ominous_warnings][@warning.name.to_sym] = :hide
      render :text => "ominous warning #{@warning.name} set to hidden"
    end
    

    
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
ominous-0.1.3 app/controllers/ominous/warnings_controller.rb
ominous-0.1.2 app/controllers/ominous/warnings_controller.rb
ominous-0.1.1 app/controllers/ominous/warnings_controller.rb
ominous-0.1.0 app/controllers/ominous/warnings_controller.rb
ominous-0.0.5 app/controllers/ominous/warnings_controller.rb
ominous-0.0.4 app/controllers/ominous/warnings_controller.rb
ominous-0.0.3 app/controllers/ominous/warnings_controller.rb
ominous-0.0.2 app/controllers/ominous/warnings_controller.rb
ominous-0.0.1 app/controllers/ominous/warnings_controller.rb