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/cases
Rafael Mendonça França 86062005a7 Revert "Merge pull request #7826 from sikachu/master-validators-kind"
This reverts commit 4e9f53f973, reversing
changes made to 6b802cdb4f.

Revert "Don't use tap in this case."

This reverts commit 454d820bf0.

Reason: Is not a good idea to add options to this method since we can do
the same thing using method composition.

    Person.validators_on(:name).select { |v| v.kind == :presence }

Also it avoids to change the method again to add more options.
2012-10-02 23:57:00 -03:00
..
serializers Update Active Model xml serialization test to reflect a change in builder 2012-09-07 13:08:30 -03:00
validations Fix method redefined warnings. 2012-08-29 02:38:12 +09:00
attribute_methods_test.rb made dynamic finders alias_attribute aware 2012-06-22 16:44:01 +02:00
callbacks_test.rb
conversion_test.rb Fix comments about to_partial_path 2012-03-10 17:40:27 -05:00
deprecated_mass_assignment_security_test.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
dirty_test.rb updating define_attribute_methods documentation 2012-05-14 11:38:23 -05:00
errors_test.rb AM::Errors: allow :full_messages parameter for #as_json 2012-02-20 11:17:11 +02:00
forbidden_attributes_protection_test.rb Don't use assert_nothing_raised when assert_equal is used 2012-09-16 23:58:21 -05:00
helper.rb Remove useless load path modifications 2012-05-11 19:00:35 -03:00
lint_test.rb
model_test.rb Add docs with usage examples for ActiveModel::Model 2012-03-03 04:45:30 -03:00
naming_test.rb Remove ActiveModel::Naming#partial_path 2012-03-10 18:02:36 -05:00
observer_array_test.rb
observing_test.rb notify_observers should be public 2012-04-30 22:13:26 -04:00
secure_password_test.rb Remove MassAssignmentSecurity from ActiveModel 2012-09-16 23:58:19 -05:00
serialization_test.rb Use respond_to?(:to_ary) rather than is_a?(Enumerable) to detect collection-thing. 2012-05-11 20:11:04 +01:00
translation_test.rb Fix human attribute_name to handle deeply nested attributes 2012-05-16 08:39:48 +09:00
validations_test.rb Revert "Merge pull request #7826 from sikachu/master-validators-kind" 2012-10-02 23:57:00 -03:00