plataformatec/devise — pull request #2112 by latortuga (2012-10-24 16:52:20+00:00)
Title: Make #set_flash_message respect i18n-set resource_name

Using #devise_i18n_options allows overriding any i18n keys but the resulting call to I18n.t does not respect an override of resource_name.

I have a situation where I'm overriding the flash message for confirmations only so that when a specific sub-type of users confirm, they get a different flash message. Using `#devise_i18n_options` works great for other options but changes to `resource_name` are not respected. This fixes that.