I want to alter I18n.translate method in existing project.
require 'I18n'
module I18n
alias_method :old_translate, :translate
def translate(*args)
old_translate(*args) + 'blabla'
end
alias_method :t, :translate
end
This generates:
Uncaught exception: Missing helper file helpers/I18n.rb
What I do wrong and where I should put this code?
require 'i18n'? beware the case sensitivity. - nurettintranslate' for moduleI18n' - Jonas