Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Commits on Feb 22, 2012
  1. @fxn

    Merge pull request #5130 from dlee/revised_patch_verb

    fxn authored
    Add config.default_method_for_update to support PATCH
  2. @dlee

    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.
    * 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. @bquorning
Commits on Feb 21, 2012
  1. @tenderlove
Commits on Feb 20, 2012
  1. @bogdan
Commits on Feb 15, 2012
  1. @fabioyamate

    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. @lest
Commits on Feb 13, 2012
  1. @tenderlove

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

    tenderlove authored
    Adding documentation to clarify usage of attributes hash.
  2. @carlosantoniodasilva
Commits on Feb 12, 2012
  1. @hammerdr
  2. @hammerdr

    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
Commits on Feb 8, 2012
  1. @tenderlove

    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. @josevalim
  2. replacing ordered hash to ruby hash

    prasath authored
Commits on Feb 6, 2012
  1. @Nielsomat

    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
Commits on Feb 1, 2012
  1. @vijaydev

    revise docs [ci skip]

    vijaydev authored
  2. @carlosantoniodasilva
Commits on Jan 27, 2012
  1. @ab9
Commits on Jan 25, 2012
  1. @vijaydev
  2. @jdelStrother
Commits on Jan 24, 2012
  1. @hindenbug

    quote fix ` to ' in the ArgumentError message

    hindenbug authored
    message quote fix
Commits on Jan 20, 2012
  1. @tenderlove

    remove unused captures

    tenderlove authored
Commits on Jan 17, 2012
  1. @dreamfall


    dreamfall authored
  2. @dreamfall
  3. @pkondzior

    Remove redundant #to_sym

    pkondzior authored
  4. @pkondzior

    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. @drogus
Commits on Jan 15, 2012
  1. @drogus

    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. @vijaydev
Commits on Jan 6, 2012
  1. @Karunakar
  2. @spastorino

    Revert "Revert "More 1.9 way""

    spastorino authored
    Fixed failing tests
    This reverts commit 8350ce9.
  3. @rafaelfranca
  4. @tenderlove

    Revert "More 1.9 way"

    tenderlove authored
    This reverts commit 675094b.
Commits on Jan 5, 2012
  1. @spastorino

    More 1.9 way

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