Magic number 72 is used many times throughout the tests, which is actually 
present under ActiveModel::SecurePassword::MAX_PASSWORD_LENGTH_ALLOWED 
constant. I propose to replace that magic number either by the constant or 
method call.

I have never contributed to such large open source project as Rails. Please 
let me know your thoughts.
 


https://github.com/rails/rails/blob/master/activemodel/test/cases/secure_password_test.rb
https://github.com/rails/rails/blob/ff657e73f0b61a7e224a9f158467ed2ec915bd9b/activemodel/lib/active_model/secure_password.rb

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-core+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-core@googlegroups.com.
Visit this group at https://groups.google.com/group/rubyonrails-core.
For more options, visit https://groups.google.com/d/optout.

Reply via email to