Skip to content
Commits on Nov 7, 2011
  1. @luckydev
Commits on Oct 26, 2011
  1. @bradrobertson
Commits on Oct 20, 2011
  1. @vijaydev
Commits on Oct 19, 2011
  1. @martinsvalin
  2. @martinsvalin

    New #added? method on ActiveModel::Errors

    martinsvalin committed Oct 19, 2011
    The #added? method makes it possible to check if a specific error has been added, using the same parameters as for #add.
Commits on Oct 17, 2011
  1. @vijaydev
  2. @martinsvalin
Commits on Oct 14, 2011
  1. @vijaydev
Commits on Oct 11, 2011
  1. @zhengjia
  2. @dolzenko
Commits on Oct 5, 2011
  1. @vijaydev
  2. @bobbytables
Commits on Oct 4, 2011
  1. @bobbytables
Commits on Sep 30, 2011
  1. @josevalim
Commits on Sep 29, 2011
  1. @ugisozols
Commits on Sep 26, 2011
  1. @jonleighton

    Make serializable_hash take attr values directly from attributes hash.

    jonleighton committed Sep 26, 2011
    Previously, it would use send() to get the attribute. In Active
    Resource, this would rely on hitting method missing. If a method with
    the same name was defined further up the ancestor chain, that method
    would wrongly be called.
    
    This change fixes test_to_xml_with_private_method_name_as_attribute in
    activeresource/test/cases/base_test.rb, which was broken after
    51bef9d, because that change made
    to_xml use serializable_hash.
Commits on Sep 22, 2011
  1. @josevalim

    Refactor AMo as_json.

    josevalim committed Sep 23, 2011
  2. @mattetti

    fixed a bug with the json serialization when the class setting is set…

    mattetti committed Sep 22, 2011
    … to not include the root, but an instance is serialized with the root option passed as true
Commits on Sep 18, 2011
  1. @josevalim
Commits on Sep 13, 2011
  1. @jonleighton

    Generate attribute method unless it's already in the module.

    jonleighton committed Sep 13, 2011
    There's no harm in generating a method name that's already defined on
    the host class, since we're generating the attribute methods in a module
    that gets included. In fact, this is desirable as it allows the host
    class to call super.
Commits on Sep 12, 2011
  1. @jonleighton

    Add an attribute_missing method to ActiveModel::AttributeMethods.

    jonleighton committed Sep 12, 2011
    This can be overloaded by implementors if necessary.
  2. @jonleighton

    Avoid double super call in some cases.

    jonleighton committed Sep 12, 2011
    If super was false earlier, it is still going to be false, so we don't
    need to call it again at the end of the method.
  3. @jonleighton

    Let Ruby deal with method visibility.

    jonleighton committed Sep 12, 2011
    Check respond_to_without_attributes? in method_missing. If there is any
    method that responds (even private), let super handle it and raise
    NoMethodError if necessary.
  4. @jonleighton
  5. @jonleighton

    refactoring

    jonleighton committed Sep 9, 2011
  6. @jonleighton

    Use an empty AttributeMethodMatcher by default.

    jonleighton committed Sep 4, 2011
    This means that attribute methods which don't exist will get generated
    when define_attribute_methods is called, so we don't have to use hacks
    like `attribute_method_suffix ''`.
Commits on Sep 9, 2011
  1. @lawrencepit
Commits on Sep 6, 2011
  1. @dmathieu
Commits on Sep 3, 2011
  1. @guilleiguaran
Commits on Sep 2, 2011
  1. @vijaydev
  2. @guilleiguaran @tenderlove
  3. @joshnesbitt

    Fix typo in ActiveModel::Dirty comment. define_attribute_methods is a…

    joshnesbitt committed Sep 2, 2011
    … class method, not attribute.
Commits on Aug 25, 2011
  1. @josevalim

    Merge pull request #2563 from bogdan/internal_validation

    josevalim committed Aug 25, 2011
    Implemented strict validation concept
  2. @bogdan

    Typo fix

    bogdan committed Aug 25, 2011
Commits on Aug 23, 2011
  1. @luckydev
Something went wrong with that request. Please try again.