You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7e99618
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Eugh, this is not valid when I look on it closer. ::Formtastic::I18n != ::I18n
Incorrect:
::Formtastic::I18n.t 'formtastic.required', :default => 'required'
Correct:
::Formtastic::I18n.t(:required)
No matter if I18n is loaded or not. The above change will give incorrect lookup. See Formtastic::I18n module.
7e99618
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
:default => 'required' will just override the default (no problemo), but why override the default with the default? ;)