I am using devise_invitable
gem in rails and I have configured a number of locales in my rails app. What I would like to do is to invite a user with a locale I would specify myself. I t could look something like this:
User.invite!(:email => "test@example.com", :locale => 'fr')
This would send an email with the 'fr' as locale , even when I18n.locale
would be en
.
Is this possible, even with a complete different syntax than the one I am using above ?