1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activemodel/test/models
Eric Hutzelman 088c11658a Fix some validators when used on model instance
Now that Validator #setup is called from the initializer, we need a
reference to the model's class to be passed in to allow the validators
to continue functioning when used at the instance level.

Closes #14134.
2014-02-26 21:35:49 -03:00
..
account.rb Remove MassAssignmentSecurity from ActiveModel 2012-09-16 23:58:19 -05:00
automobile.rb Fix some validators when used on model instance 2014-02-26 21:35:49 -03:00
blog_post.rb Rely on a public contract between railties instead of accessing railtie methods directly. 2011-11-23 19:06:45 +00:00
contact.rb Convert ActiveModel to 1.9 hash syntax. 2013-05-01 18:01:46 -07:00
custom_reader.rb Deletes trailing whitespaces (over text files only find * -type f -exec sed 's/[ \t]*$//' -i {} \;) 2010-08-14 04:12:33 -03:00
helicopter.rb test for ActiveModel::Conversion#to_partial_path and namespaced models 2013-01-14 21:17:22 +01:00
person.rb Revert "Properly interpolate i18n keys in modules [#5572 state:resolved]" 2011-02-27 21:30:03 -02:00
person_with_validator.rb Better shortcut options for custom validators [#5672 state:resolved] 2010-09-24 12:49:16 +02:00
project.rb attr_accessible and attr_protected raise an exception pointing to use plugin or new protection model 2012-09-16 23:58:21 -05:00
reply.rb Convert ActiveModel to 1.9 hash syntax. 2013-05-01 18:01:46 -07:00
sheep.rb Deletes trailing whitespaces (over text files only find * -type f -exec sed 's/[ \t]*$//' -i {} \;) 2010-08-14 04:12:33 -03:00
topic.rb Let validates_inclusion_of accept Time and DateTime ranges 2013-10-23 22:10:15 +09:00
track_back.rb No need to pass self as parameter here. 2010-10-04 22:32:29 +02:00
user.rb Rewrote the tests for has_secure_password 2014-01-24 19:49:30 -08:00
visitor.rb Remove MassAssignmentSecurity from ActiveModel 2012-09-16 23:58:19 -05:00