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