Skip to content

Commit

Permalink
when key given in :default option it must be symbol
Browse files Browse the repository at this point in the history
  • Loading branch information
mikdiet committed Aug 27, 2012
1 parent 8855a46 commit dbe1265
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/gritter/gflash.rb
Expand Up @@ -45,7 +45,7 @@ def gflash_push(key, value)

def gflash_translation(key)
i18n_key = "gflash.#{params[:controller]}.#{params[:action]}.#{key}"
I18n.t(i18n_key.gsub(/\//, "."), :default => i18n_key)
I18n.t(i18n_key.gsub(/\//, "."), :default => i18n_key.to_sym)
end
end
end

0 comments on commit dbe1265

Please sign in to comment.