Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Feb 26, 2015
  1. Robin Dupret

    Follow-up to #10776

    robin850 authored
    The name `ActiveModel::AttributeAssignment::UnknownAttributeError` is
    too implementation specific so let's move the constant directly under
    the ActiveModel namespace.
    
    Also since this constant used to be under the ActiveRecord namespace, to
    make the upgrade path easier, let's avoid raising the former constant
    when we deal with this error on the Active Record side.
Commits on Feb 7, 2015
  1. Sean Griffin

    Push multi-parameter assignement into the types

    sgrif authored
    This allows us to remove `Type::Value#klass`, as it was only used for
    multi-parameter assignment to reach into the types internals. The
    relevant type objects now accept a hash in addition to their previous
    accepted arguments to `type_cast_from_user`. This required minor
    modifications to the tests, since previously they were relying on the
    fact that mulit-parameter assignement was reaching into the internals of
    time zone aware attributes. In reaility, changing those properties at
    runtime wouldn't change the accessor methods for all other forms of
    assignment.
Commits on Jan 26, 2015
  1. Carlos Antonio da Silva

    Move method to private section

    carlosantoniodasilva authored
    It's under private in Active Model as well.
Commits on Jan 23, 2015
  1. 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.
  2. Bogdan Gusiev

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

    bogdan authored
    …utesAssignment`
    
    Allows to use it for any object as an includable module.
Commits on Nov 29, 2014
  1. Erik Michaels-Ober
Commits on Jun 24, 2014
  1. Sean Griffin

    Silence warning in test

    sgrif authored
    We still had one file using `column_for_attribute` when it could return
    nil, causing deprecation warnings in the tests.
Commits on Jun 23, 2014
  1. Mindaugas Mozūras
Commits on Jun 6, 2014
  1. Sean Griffin

    Remove composed_of special case from multi-parameter attributes

    sgrif authored
    As we move towards removing the `klass` method from `column`, the else
    clause as it stands right now will become the only case.
Commits on Jun 1, 2014
  1. Vijay Dev
Commits on May 29, 2014
  1. Richard Schneeman
Commits on May 19, 2014
  1. Sean Griffin

    Remove :timestamp column type

    sgrif authored
    The `:timestamp` type for columns is unused. All database adapters treat
    them as the same database type. All code in `ActiveRecord` which changes
    its behavior based on the column's type acts the same in both cases.
    However, when the type is passed to code that checks for the `:datetime`
    type, but not `:timestamp` (such as XML serialization), the result is
    unexpected behavior.
    
    Existing schema definitions will continue to work, and the `timestamp`
    type is transparently aliased to `datetime`.
Commits on May 10, 2014
  1. Vijay Dev

    copy edits [ci skip]

    vijaydev authored
Commits on May 9, 2014
  1. Richard Schneeman
Commits on Sep 24, 2013
  1. John J. Wang

    assign_attributes should return if argument is blank.

    wangjohn authored
    If you are passed an empty hash, then assign_attributes doesn't need to
    do any work and can just return early. This should fix the failing Agile
    Web Development tests.
  2. Rafael Mendonça França

    Merge pull request #9860 from wangjohn/update_attributes_throws_error…

    rafaelfranca authored
    …_with_nil
    
    Raising an error when nil is passed to update_attributes.
    
    Conflicts:
    	activerecord/CHANGELOG.md
Commits on Jun 27, 2013
  1. Łukasz Strzałkowski

    Remove deprecated attr_protected/accessible

    strzalek authored
    Rails 4.0 has removed attr_protected and attr_accessible feature in favor of Strong Parameters.
Commits on Jun 26, 2013
  1. John J. Wang
Commits on May 16, 2013
  1. Bogdan Gusiev Aaron Patterson

    Add more data to AR::UnknownAttributeError

    bogdan authored tenderlove committed
    begin
      Topic.new("hello" => "world")
    rescue ActiveRecord::UnknownAttributeError => e
      e.record # => #<Topic ... >
      e.attribute # => "hello"
    end
Commits on May 15, 2013
  1. Aaron Patterson

    require things we need

    tenderlove authored
Commits on Mar 23, 2013
  1. John J. Wang
Commits on Dec 11, 2012
  1. Andrew White

    Deprecate obsolete Time to DateTime fallback methods

    pixeltrix authored
    The Time.time_with_datetime_fallback, Time.utc_time and Time.local_time
    methods were added to handle the limitations of Ruby's native Time
    implementation. Those limitations no longer apply so we are deprecating
    them in 4.0 and they will be removed in 4.1.
Commits on Oct 18, 2012
  1. Rafael Mendonça França
Commits on Sep 20, 2012
  1. Francesco Rodríguez
  2. Guillermo Iguaran
Commits on Sep 17, 2012
  1. Guillermo Iguaran
  2. Guillermo Iguaran

    attr_accessible and attr_protected raise an exception pointing to use…

    guilleiguaran authored
    … plugin or new protection model
  3. Guillermo Iguaran
  4. Guillermo Iguaran
Commits on Aug 18, 2012
  1. Carlos Antonio da Silva

    Get rid of some arguments by using the accessors

    carlosantoniodasilva authored
    Cleans up a lot of noise from arguments being passed from one method to
    another.
  2. Carlos Antonio da Silva

    Move multiparameter attribute logic to a class

    carlosantoniodasilva authored
    This should make it easier to refactor and improve this code, and remove
    complexity with params going around here and there.
  3. Carlos Antonio da Silva
  4. Carlos Antonio da Silva
  5. Carlos Antonio da Silva
  6. Carlos Antonio da Silva
Something went wrong with that request. Please try again.