Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Commits on May 24, 2015
  1. @akshay-vishnoi
Commits on Apr 18, 2015
  1. @senny

    Merge pull request #19787 from Senjai/patch-2

    senny authored
    [Doc] Encourage users to user super to override methods.
    
    [ci skip]
Commits on Apr 16, 2015
  1. @Senjai

    Encourage users to user super to override methods.

    Senjai authored
    IMO we shouldn't encourage users to use methods they shouldn't need to know about. As Song (in this example) inherits from ActiveRecord, we can use super here instead to get the same effect with the bonus of not knowing how active record actually implements these methods.
Commits on Apr 8, 2015
  1. @arthurnn

    Batch touch parent records

    arthurnn authored
    [fixes #18606]
    
    Make belongs_to use touch over touch_later when running the callbacks.
    
    Add more tests and small method rename
    
    Thanks Jeremy for the feedback.
Commits on Mar 20, 2015
  1. @yui-knk
Commits on Feb 18, 2015
  1. @perceptec
Commits on Jan 4, 2015
  1. @robertomiranda

    Add has_secure_token to Active Record

    robertomiranda authored
    Update SecureToken Docs
    
    Add Changelog entry for has_secure_token [ci skip]
Commits on Dec 29, 2014
  1. @sgrif
Commits on Dec 24, 2014
  1. @M7

    Clarify that query methods have a custom definition of whether a nume…

    M7 authored
    …ric value is present. [ci skip]
    
    The way Active Record query methods handle numeric values is a special case, and is not part of Rails's standard definition of present. This update attempts to make this more clear in the docs, so that people don't expect Object#present? to return false if used on a number that is zero.
Commits on Dec 23, 2014
  1. @M7

    Clarify that the word present refers to Object#present?. [ci skip]

    M7 authored
    Update Active Record's attribute query methods documentation to clarify that whether an attribute is present is based on Object#present?. This gives people a place to go see what the exact definition of presence is. [ci skip]
  2. @M7

    Update Active Record's attribute query methods documentation to descr…

    M7 authored
    …ibe its full behaviour. [ci skip]
Commits on Jul 28, 2014
  1. @rafaelfranca
  2. @senny
Commits on Jun 30, 2014
  1. @sgrif
  2. @jamesprior

    Update documentation on STI change handling

    jamesprior authored
    Documenting a potential source of confusion about how STI classes handle changes.
Commits on Jun 29, 2014
  1. @sgrif
Commits on Jun 17, 2014
  1. @sgrif
Commits on Jun 16, 2014
  1. @sgrif

    Promote time zone aware attributes to a first class type decorator

    sgrif authored
    This refactoring revealed the need for another form of decoration, which
    takes a proc to select which it applies to (There's a *lot* of cases
    where this form can be used). To avoid duplication, we can re-implement
    the old decoration in terms of the proc-based decoration.
    
    The reason we're `instance_exec`ing the matcher is for cases such as
    time zone aware attributes, where a decorator is defined in a parent
    class, and a method called in the matcher is overridden by a child
    class. The matcher will close over the parent, and evaluate in its
    context, which is not the behavior we want.
Commits on Jun 9, 2014
  1. @rafaelfranca

    Timestamp values should be present on callbacks

    rafaelfranca authored
    This reverts commit dd3ea17 and add a
    regression test.
    
    Fixes #15418
Commits on Jun 7, 2014
  1. @rafaelfranca

    Merge pull request #15558 from sgrif/sg-rename-property

    rafaelfranca authored
    Rename `property` to `attribute`
    
    Conflicts:
    	activerecord/lib/active_record/attribute_methods/serialization.rb
    	activerecord/lib/active_record/base.rb
  2. @sgrif

    Rename `property` to `attribute`

    sgrif authored
    For consistency with #15557
  3. @sgrif

    Don't query the database schema when calling `serialize`

    sgrif authored
    We need to decorate the types lazily. This is extracted to a separate
    API, as there are other refactorings that will be able to make use of
    it, and to allow unit testing the finer points more granularly.
Commits on May 26, 2014
  1. @sgrif

    Add a public API to allow users to specify column types

    sgrif authored
    As a result of all of the refactoring that's been done, it's now
    possible for us to define a public API to allow users to specify
    behavior. This is an initial implementation so that I can work off of it
    in smaller pieces for additional features/refactorings.
    
    The current behavior will continue to stay the same, though I'd like to
    refactor towards the automatic schema detection being built off of this
    API, and add the ability to opt out of automatic schema detection.
    
    Use cases:
    
    - We can deprecate a lot of the edge cases around types, now that there
      is an alternate path for users who wish to maintain the same behavior.
    - I intend to refactor serialized columns to be built on top of this
      API.
    - Gem and library maintainers are able to interact with `ActiveRecord`
      at a slightly lower level in a more stable way.
    - Interesting ability to reverse the work flow of adding to the schema.
      Model can become the single source of truth for the structure. We can
      compare that to what the database says the schema is, diff them, and
      generate a migration.
Commits on Apr 23, 2014
  1. @lucasmazza
Commits on Mar 27, 2014
  1. @rafaelfranca

    Merge pull request #14469 from tiegz/timestamp_inheritance_fix

    rafaelfranca authored
    Swap Timestamp/Callbacks order in ActiveRecord::Base
Commits on Jan 22, 2014
  1. @kbrock
Commits on Dec 2, 2013
  1. @gsamokovarov
Commits on Nov 13, 2013
  1. @dmathieu
Commits on Nov 2, 2013
  1. @dhh

    Added ActiveRecord::Base#enum for declaring enum attributes where the…

    dhh authored
    … values map to integers in the database, but can be queried by name
Commits on Aug 30, 2013
  1. @tenderlove
Commits on Apr 2, 2013
  1. @rubys
Commits on Jan 18, 2013
  1. @tbaba

    Remove useless number sign

    tbaba authored
    I think that these signs are probably mistake.
Commits on Jan 1, 2013
  1. @amatsuda
  2. @amatsuda
  3. @amatsuda
Something went wrong with that request. Please try again.