Sha256: 0eddda804508ad5ad5020dbc1b58d09d206ec9ec3ce4817dee38208f46abb9ad
Contents?: true
Size: 304 Bytes
Versions: 3
Compression:
Stored size: 304 Bytes
Contents
module Gritter module Gflash def gflash *args session[:gflash] ||= {} options = args.extract_options! options.each do |key, value| session[:gflash][key] = value == true ? I18n.t("gflash.#{params[:controller]}.#{params[:action]}.#{key}") : value end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
gritter-0.6.2 | lib/gritter/gflash.rb |
gritter-0.6.1 | lib/gritter/gflash.rb |
gritter-0.6.0 | lib/gritter/gflash.rb |