Fix invitation email subject
This commit is contained in:
parent
118d3720c4
commit
f30df2c88d
1 changed files with 11 additions and 0 deletions
|
|
@ -20,3 +20,14 @@ AVAILABLE_LANGUAGE_CODES.each do |c|
|
|||
end
|
||||
end
|
||||
|
||||
# There's almost certainly a better way to do this.
|
||||
# Maybe by loading our paths in the initializer hooks, they'll end up after the gem paths?
|
||||
class I18n::Railtie
|
||||
class << self
|
||||
def initialize_i18n_with_path_cleanup *args
|
||||
initialize_i18n_without_path_cleanup *args
|
||||
I18n.load_path.reject!{|path| path.match(/devise_invitable/) }
|
||||
end
|
||||
alias_method_chain :initialize_i18n, :path_cleanup
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in a new issue