Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Feb 24, 2015
  1. Ian Ker-Seymer

    activemodel: make .model_name json encodable

    ianks authored
    Previously, calling `User.model_name.to_json` would result in an infinite
    recursion as `.model_name` inherited its `.as_json` behavior from Object. This
    patch fixes that unexpected behavior by delegating `.as_json` to :name.
Commits on Feb 23, 2015
  1. Yves Senn
Commits on Feb 20, 2015
  1. Rafael Mendonça França
  2. Lucas Mazza
  3. Rafael Mendonça França

    Merge pull request #17144 from skojin/patch-doc-validation-format-z-r…

    rafaelfranca authored
    fix mistype in doc about \z regexp
  4. y-yagi
Commits on Feb 19, 2015
  1. Yves Senn

    Merge pull request #18996 from morgoth/deprecate-more-errors-methods

    senny authored
    Deprecate `ActiveModel::Errors` `add_on_empty` and `add_on_blank` methods
  2. Wojciech Wnętrzak

    Deprecate `ActiveModel::Errors` `add_on_empty` and `add_on_blank` met…

    morgoth authored
    without replacement.
Commits on Feb 18, 2015
  1. Rafael Mendonça França

    Merge pull request #18634 from morgoth/deprecate-some-errors-methods

    rafaelfranca authored
    Deprecate `ActiveModel::Errors` `get`, `set` and `[]=` methods.
Commits on Feb 15, 2015
  1. Robin Dupret
Commits on Feb 14, 2015
  1. Vijay Dev
Commits on Feb 13, 2015
  1. Rafael Mendonça França

    Merge pull request #16381 from kakipo/validate-length-tokenizer

    rafaelfranca authored
    Allow symbol as values for `tokenizer` of `LengthValidator`
Commits on Feb 6, 2015
  1. Rafael Mendonça França

    Merge pull request #18388 from claudiob/better-docs-for-active-model-…

    rafaelfranca authored
    Better docs for AM::Lint::Tests
  2. Xavier Noria

    revises AM:Dirty example [Godfrey Chan & Xavier Noria]

    fxn authored
    The existing example seems somewhat forced: is it realistic
    to have a model that accepts state in its initializer but
    considers it has not been changed? By allowing state changes
    to happen only via accessors it seems more natural that new
    instances are considered to be unchanged (as they are in AR).
    [ci skip]
  3. Xavier Noria
  4. Xavier Noria
Commits on Feb 3, 2015
  1. Jeremy Kemper

    Merge pull request #18795 from vipulnsward/remove-magic-comments

    jeremy authored
    Removed magic comments (`# encoding: utf-8`) from tests since it's default from ruby 2 onwards
  2. Vipul A M
  3. Carlos Antonio da Silva

    Wrap method arguments with parentheses in docs

    carlosantoniodasilva authored
    As per Rails general coding conventions. Related to #18794 [ci skip]
  4. Vipul A M

    Person class doesn't contain finder methods, hence usage of…

    vipulnsward authored
    …nd_by is wrong.
    Added simple initialize and made use of instead of Person.find_by to clarify the docs.
    [ci skip]
Commits on Feb 2, 2015
  1. Eileen M. Uchitelle

    Fix validations on child record when record parent has validate: false

    eileencodes authored
    Fixes #17621. This 5 year old (or older) issue causes validations to fire
    when a parent record has `validate: false` option and a child record is
    saved. It's not the responsibility of the model to validate an
    associated object unless the object was created or modified by the
    Clean up tests related to validations
    `assert_nothing_raised` is not benefiting us in these tests
    Corrected spelling of "respects"
    It's better to use `assert_not_operator` over `assert !r.valid`
Commits on Feb 1, 2015
  1. Carlos Antonio da Silva

    Move required error message and changelog to Active Record

    carlosantoniodasilva authored
    The new association error belongs to Active Record, not Active Model.
    See #18700 for reference.
  2. Wojciech Wnętrzak

    Deprecate `ActiveModel::Errors` `get`, `set` and `[]=` methods.

    morgoth authored
    They have inconsistent behaviour currently.
  3. Vipul A M

    AM#Dirty doc fixes

    vipulnsward authored
    - Grammar fixes
    - Add doc for changes_include?
    -  implemntations => implementations
Commits on Jan 31, 2015
  1. Aaron Patterson

    Merge pull request #18700 from nygrenh/better-required-message

    tenderlove authored
    Provide a better error message on :required association
  2. Yves Senn
  3. Vipul A M
Commits on Jan 28, 2015
  1. Henrik Nygren
Commits on Jan 24, 2015
  1. Yves Senn

    Merge pull request #18670 from morgoth/fix-duplicating-errors-details

    senny authored
    Fixed duplicating ActiveModel::Errors#details
  2. Wojciech Wnętrzak
Commits on Jan 23, 2015
  1. Eugene Gilburg
  2. Sean Griffin

    ✂️ and 💅 for #10776

    sgrif authored
    Minor style changes across the board. Changed an alias to an explicit
    method declaration, since the alias will not be documented otherwise.
  3. Bogdan Gusiev

    Extracted `ActiveRecord::AttributeAssignment` to `ActiveModel::Attrib…

    bogdan authored
    Allows to use it for any object as an includable module.
Commits on Jan 21, 2015
  1. Rafael Mendonça França

    Merge pull request #18322 from morgoth/add-error-codes

    rafaelfranca authored
    Add ActiveModel::Errors#codes
  2. Wojciech Wnętrzak
Something went wrong with that request. Please try again.