Skip to content


Error message should be a proc #397

merged 1 commit into from

2 participants


To fix the first pair of errors mentioned in #393, the error message returned by the validators was supposed to be a proc, but it wasn't. So it returned the translation as it was when the model was setup, not with the locate of the moment the validation occurs.



@binarylogic binarylogic merged commit 0691e39 into binarylogic:master
@Hermanverschooten Hermanverschooten deleted the unknown repository branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 1, 2014
  1. @Hermanverschooten
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/authlogic/acts_as_authentic/email.rb
2 lib/authlogic/acts_as_authentic/email.rb
@@ -65,7 +65,7 @@ def merge_validates_length_of_email_field_options(options = {})
# * <tt>Default:</tt> {:with =>, :message => lambda {I18n.t('error_messages.email_invalid', :default => "should look like an email address.")}}
# * <tt>Accepts:</tt> Hash of options accepted by validates_format_of
def validates_format_of_email_field_options(value = nil)
- rw_config(:validates_format_of_email_field_options, value, {:with =>, :message => I18n.t('error_messages.email_invalid', :default => "should look like an email address.")})
+ rw_config(:validates_format_of_email_field_options, value, {:with =>, :message =>{I18n.t('error_messages.email_invalid', :default => "should look like an email address.")}})
alias_method :validates_format_of_email_field_options=, :validates_format_of_email_field_options
Something went wrong with that request. Please try again.