Use I18n.t for translations instead of view helper

This commit is contained in:
José Valim 2015-09-07 10:03:18 +02:00
parent 63fbc2d5a8
commit 6ba68fc42e
1 changed files with 1 additions and 1 deletions

View File

@ -184,7 +184,7 @@ module SimpleForm
lookups << :"defaults.#{reflection_or_attribute_name}"
lookups << default
t(lookups.shift, scope: :"#{i18n_scope}.#{namespace}", default: lookups).presence
I18n.t(lookups.shift, scope: :"#{i18n_scope}.#{namespace}", default: lookups).presence
end
def merge_wrapper_options(options, wrapper_options)