don't use i18n just with attribute to lookup translation if it is a model, closes #364

This commit is contained in:
Vasiliy Ermolovich 2011-11-26 19:44:41 +03:00
parent bfe2314901
commit 87974b4e41
1 changed files with 1 additions and 1 deletions

View File

@ -129,7 +129,7 @@ module SimpleForm
lookups << :"#{joined_model_names}.#{lookup_action}.#{reflection_or_attribute_name}"
lookups << :"#{joined_model_names}.#{reflection_or_attribute_name}"
end
lookups << :"#{reflection_or_attribute_name}"
lookups << :"#{attribute_name}" unless reflection
lookups << default
I18n.t(lookups.shift, :scope => :"simple_form.#{namespace}", :default => lookups).presence