rails/activemodel/lib
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
..
active_model change param name to improve documentation 2012-06-22 12:42:32 -05:00
active_model.rb Simplify AR configuration code. 2012-06-15 19:15:36 +01:00