lib/gritter/gflash.rb in gritter-0.5.1 vs lib/gritter/gflash.rb in gritter-0.6.0
- old
+ new
@@ -2,10 +2,10 @@
module Gflash
def gflash *args
session[:gflash] ||= {}
options = args.extract_options!
options.each do |key, value|
- session[:gflash][key] = value
+ session[:gflash][key] = value == true ? I18n.t("gflash.#{params[:controller]}.#{params[:action]}.#{key}") : value
end
end
end
end
\ No newline at end of file