rails/activemodel/lib/active_model
Francesco Rodriguez 629bc03bf8 change param name to improve documentation
The keys of the error messages are actually attribute names. It makes
the documentation easier to understand:

    # Returns +true+ if the error messages include an error for the given
    # +attribute+, +false+ otherwise.
    #
    #   person.errors.messages # => { :name => ["can not be nil"] }
    #   person.errors.include?(:name) # => true
    #   person.errors.include?(:age)  # => false
    def include?(attribute)
      (v = messages[attribute]) && v.any?
    end
2012-06-22 12:42:32 -05:00
..
locale confirmation validation error attribute 2012-04-23 17:16:05 -04:00
mass_assignment_security Compact array of values added to PermissionSet instance 2012-06-08 01:00:34 +04:00
serializers Simplify AR configuration code. 2012-06-15 19:15:36 +01:00
validations Merge branch 'master' of github.com:lifo/docrails 2012-06-14 22:52:38 +05:30
attribute_methods.rb Merge branch 'master' of github.com:lifo/docrails 2012-06-22 22:15:27 +05:30
callbacks.rb update ActiveModel::Callbacks documentation [ci skip] 2012-06-22 00:32:54 -05:00
conversion.rb Fix comments about to_partial_path 2012-03-10 17:40:27 -05:00
dirty.rb update ActiveModel::Dirty documentation 2012-05-31 05:06:00 -05:00
errors.rb change param name to improve documentation 2012-06-22 12:42:32 -05:00
lint.rb Allow ActiveModel::Name to duck type 2012-03-28 18:25:06 +02:00
mass_assignment_security.rb Simplify AR configuration code. 2012-06-15 19:15:36 +01:00
model.rb fix bad format [ci skip] 2012-04-14 11:58:43 +03:00
naming.rb Refactor human attribute name 2012-04-28 12:14:59 -03:00
observer_array.rb Make observer enable/disable documentation more informative. 2012-06-09 16:04:01 -03:00
observing.rb notify_observers should be public 2012-04-30 22:13:26 -04:00
railtie.rb Some railties cleanup: 2009-12-31 13:12:52 -08:00
secure_password.rb has_secure_password shouldn't validate password_digest. It should also take options to turn validations off. 2012-05-08 18:08:55 -05:00
serialization.rb Merge pull request #5678 from troyk/patch-1 2012-05-19 06:08:33 -07:00
test_case.rb Remove dead code from AMo. 2011-12-20 18:38:20 +01:00
translation.rb Fix human attribute_name to handle deeply nested attributes 2012-05-16 08:39:48 +09:00
validations.rb Merge branch 'master' of github.com:lifo/docrails 2012-06-22 22:15:27 +05:30
validator.rb Remove Array.wrap call in ActiveModel 2012-01-06 01:04:33 -03:00
version.rb rails/master is now 4.0.0.beta and will only support Ruby 1.9.3+ 2011-12-20 09:30:37 -06:00