Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Feb 22, 2012
  1. Xavier Noria

    Merge pull request #5130 from dlee/revised_patch_verb

    fxn authored
    Add config.default_method_for_update to support PATCH
  2. David Lee

    Add config.default_method_for_update to support PATCH

    dlee authored
    PATCH is the correct HTML verb to map to the #update action. The
    semantics for PATCH allows for partial updates, whereas PUT requires a
    complete replacement.
    
    Changes:
    * adds config.default_method_for_update you can set to :patch
    * optionally use PATCH instead of PUT in resource routes and forms
    * adds the #patch verb to routes to detect PATCH requests
    * adds #patch? to Request
    * changes documentation and comments to indicate support for PATCH
    
    This change maintains complete backwards compatibility by keeping :put
    as the default for config.default_method_for_update.
  3. Benjamin Quorning
Commits on Feb 21, 2012
  1. Aaron Patterson
Commits on Feb 20, 2012
  1. Bogdan Gusiev
Commits on Feb 15, 2012
  1. Fabio Yamate

    Fix sanitize_for_mass_assigment when role is nil

    fabioyamate authored
    There is an example in Rails documentation that suggests implementing
    assign_attributes method for ActiveModel interface, that by default
    sends option role with nil. Since mass_assignment_authorizer never
    is called without args, we can move the default value internally.
Commits on Feb 14, 2012
  1. Sergey Nartimov
Commits on Feb 13, 2012
  1. Aaron Patterson

    Merge pull request #5018 from hammerdr/issue-4659-docs

    tenderlove authored
    Adding documentation to clarify usage of attributes hash.
  2. Carlos Antonio da Silva
Commits on Feb 12, 2012
  1. Derek Hammer
  2. Derek Hammer

    Adding documentation to clarify usage of attributes hash.

    hammerdr authored
    Serialization uses only the attributes hash's keys and calls
    methods that are of the same name as the keys on the serialized
    object.
Commits on Feb 8, 2012
  1. Aaron Patterson

    Merge pull request #4930 from ask4prasath/ordered_hash_replaced

    tenderlove authored
    Replacing ordered hash to ruby hash on active model
Commits on Feb 7, 2012
  1. José Valim
  2. replacing ordered hash to ruby hash

    prasath authored
Commits on Feb 6, 2012
  1. Niels Ganser

    To infinity… and beyond!

    Nielsomat authored
    Allow infinite values for validates_length_of. Particularly useful
    for prettily defining an open ended range such as
    
    validates_length_of :human_stupidity, :within => 0..Float::INFINITY
Commits on Feb 3, 2012
  1. Bogdan Gusiev
Commits on Feb 1, 2012
  1. Vijay Dev

    revise docs [ci skip]

    vijaydev authored
  2. Carlos Antonio da Silva
Commits on Jan 27, 2012
  1. Aaron Beckerman
Commits on Jan 25, 2012
  1. Vijay Dev
  2. Jonathan del Strother
Commits on Jan 24, 2012
  1. Manoj

    quote fix ` to ' in the ArgumentError message

    hindenbug authored
    message quote fix
Commits on Jan 20, 2012
  1. Aaron Patterson

    remove unused captures

    tenderlove authored
Commits on Jan 17, 2012
  1. Vasili Kachalko

    whitespaces

    dreamfall authored
  2. Vasili Kachalko
  3. Paweł Kondzior

    Remove redundant #to_sym

    pkondzior authored
  4. Paweł Kondzior

    Fix ActiveModel::Errors#dup

    pkondzior authored
    Since ActiveModel::Errors instance keeps all error messages as hash
    we should duplicate this object as well.
    
    Previously ActiveModel::Errors was a subclass of ActiveSupport::OrderedHash,
    which results in different behavior on `dup`, this may result in regression for
    people relying on it.
Commits on Jan 16, 2012
  1. Piotr Sarnacki
Commits on Jan 15, 2012
  1. Piotr Sarnacki

    Fix stack level too deep when model does not have attributes method.

    drogus authored
    Without that patch when using ActiveModel::AttributeMethods
    in a class that does not respond to `attributes` method,
    stack level too deep error will be raised on non existing
    method. While documentation is clear that you need to define
    `attributes` method in order to use AttributeMethods module,
    `stack level too deep` is rather obscure and hard to debug,
    therefore we should try to not break `method_missing` if
    someone forgets about defining `attributes`.
Commits on Jan 11, 2012
  1. Vijay Dev
Commits on Jan 6, 2012
  1. Karunakar (Ruby)
  2. Santiago Pastorino

    Revert "Revert "More 1.9 way""

    spastorino authored
    Fixed failing tests
    This reverts commit 8350ce9.
  3. Rafael Mendonça França
  4. Aaron Patterson

    Revert "More 1.9 way"

    tenderlove authored
    This reverts commit 675094b.
Commits on Jan 5, 2012
  1. Santiago Pastorino

    More 1.9 way

    spastorino authored
Something went wrong with that request. Please try again.