1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activemodel/test
José Valim a25ef06956 Allow to specify default attributes names translation in I18n yml files.
For example, you could easily specify :created_at and :updated_at translations as:

  en:
    attributes:
      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).
2010-01-07 15:31:50 +01:00
..
cases Allow to specify default attributes names translation in I18n yml files. 2010-01-07 15:31:50 +01:00
fixtures Add test sqlite3 db to .gitignore 2009-03-20 11:22:27 +00:00
models No need to use ValidationsRepairHelper hack on ActiveModel anymore, Model.reset_callbacks(:validate) is enough. However, tests in ActiveRecord are still coupled, so moved ValidationsRepairHelper back there. 2009-12-23 13:30:58 +01:00
config.rb Make Active Model test suite similar to Active Record 2009-03-20 10:32:24 +00:00
schema.rb Add ActiveModel::Validations tests for regular ruby classes 2009-03-20 22:21:27 +00:00