Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Commits on Jul 21, 2015
  1. @repinel

    Deprecate and rename the keys for association restrict_dependent_destroy

    repinel authored
    Previously `has_one` and `has_many` associations were using the
    `one` and `many` keys respectively. Both of these keys have special
    meaning in I18n (they are considered to be pluralizations) so by
    renaming them to `has_one` and `has_many` we make the messages more
    explicit and most importantly they don't clash with linguistical
    systems that need to validate translation keys (and their
    The `:''` key should be replaced with
    `:'restrict_dependent_destroy.has_one'`, and
    `:'restrict_dependent_destroy.many'` with
    [Roque Pinel & Christopher Dell]
Commits on Feb 1, 2015
  1. @carlosantoniodasilva

    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.
Commits on Oct 20, 2012
  1. @adimichele

    Changed scope for "taken" error message translation to decrease prece…

    adimichele authored
    Moved activerecord.errors.messages.taken to errors.messages.taken so that translations for, e.g., don't get overridden.
    Test that the translation for 'taken' can be overridden
Commits on Feb 1, 2012
  1. @rafaelfranca

    Fix typo

    rafaelfranca authored
  2. @rafaelfranca
  3. @hindenbug
Commits on Jan 31, 2012
Commits on Jan 29, 2012
  1. @hindenbug
Commits on Aug 14, 2010
  1. @spastorino

    Deletes trailing whitespaces (over text files only find * -type f -ex…

    spastorino authored
    …ec sed 's/[ \t]*$//' -i {} \;)
Commits on Jun 14, 2010
  1. @fxn

    edit pass: the names of Rails components have a space, ie, "Active Re…

    fxn authored
    …cord", not "ActiveRecord"
Commits on May 1, 2010
  1. @josevalim
Commits on Jan 30, 2010
  1. @josevalim
Commits on Jan 7, 2010
  1. @josevalim

    Allow to specify default attributes names translation in I18n yml files.

    josevalim authored
    For example, you could easily specify :created_at and :updated_at translations as:
          created_at: "Created at"
          updated_at: "Updated at"
    This configuration is built on ActiveModel, so it means those translations are
    shared between different ORMs as well (but always as a fallback).
  2. @josevalim
Commits on Jan 2, 2010
  1. @josevalim
Commits on Aug 26, 2009
  1. @svenfuchs @jeremy

    allow ActiveRecord#RecordInvalid exception message to be localized

    svenfuchs authored jeremy committed
    [#2754 state:committed]
    Signed-off-by: Jeremy Kemper <>
Commits on Jan 18, 2009
  1. @lifo

    Merge docrails

    lifo authored
Commits on Nov 18, 2008
  1. @svenfuchs @dhh

    use :en as a default locale (in favor of :en-US)

    svenfuchs authored dhh committed
    Signed-off-by: David Heinemeier Hansson <>
Something went wrong with that request. Please try again.