Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
| | * | Add validates method as shortcut to setup validators for a given set of ↵ | jamie | 2010-01-07 | 12 | -96/+236 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | attributes: class Person < ActiveRecord::Base include MyValidators validates :name, :presence => true, :uniqueness => true, :length => { :maximum => 100 } validates :email, :presence => true, :email => true end [#3058 status:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | |||||
| | * | Allow to specify default attributes names translation in I18n yml files. | José Valim | 2010-01-07 | 1 | -2/+3 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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). | |||||
| | * | Errors messages are now moved from :activerecord.errors to simply :errors on ↵ | José Valim | 2010-01-07 | 2 | -28/+26 | |
| | | | | | | | | | | | | I18n yml files. | |||||
| | * | Autoload AS test case | Joshua Peek | 2010-01-04 | 1 | -2/+0 | |
| | | | ||||||
| | * | Merge | David Heinemeier Hansson | 2010-01-03 | 4 | -6/+25 | |
| | |\ | ||||||
| | * | | Change the ActiveModel::Base.include_root_in_json default to true for Rails ↵ | David Heinemeier Hansson | 2010-01-03 | 1 | -5/+3 | |
| | | | | | | | | | | | | | | | | 3 [DHH] | |||||
* | | | | Adding ActiveModel::AttributeMethods documentation | Mikel Lindsaar | 2010-01-17 | 1 | -21/+120 | |
|/ / / | ||||||
* | | | Adding RDoc for active_model dirty | Mikel Lindsaar | 2010-01-16 | 1 | -1/+39 | |
| | | | ||||||
* | | | ActiveModel::Conversion documentation | Mikel Lindsaar | 2010-01-15 | 1 | -1/+12 | |
| | | | ||||||
* | | | ActiveModel::Callbacks documentation | Mikel Lindsaar | 2010-01-15 | 1 | -31/+73 | |
| | | | ||||||
* | | | Merge remote branch 'mainstream/master' | Pratik Naik | 2010-01-04 | 19 | -286/+429 | |
|\ \ \ | | |/ | |/| | ||||||
| * | | Add missing tests to Validators. | José Valim | 2010-01-03 | 1 | -1/+2 | |
| | | | ||||||
| * | | Add naming to AMo::Lint | José Valim | 2010-01-02 | 1 | -0/+14 | |
| | | | ||||||
| * | | Use activerecord.errors.format as in Rails 2.3.5. | José Valim | 2010-01-02 | 2 | -3/+6 | |
| | | | ||||||
| * | | Be sure to convert namespaced names to we have 'Parrots name' instead of ↵ | José Valim | 2010-01-02 | 1 | -2/+3 | |
| |/ | | | | | | | 'Parrots.name' in error messages. | |||||
| * | Ruby 1.9.2: explicit coercion check no longer needed; bug fixed upstream | Jeremy Kemper | 2010-01-01 | 1 | -4/+0 | |
| | | ||||||
| * | Some railties cleanup: | Carl Lerche | 2009-12-31 | 1 | -0/+0 | |
| | | | | | | | | | | | | * Rename <framework>/rails.rb -> <framework>/railtie.rb * Rails::Plugin -> Rails::Railtie * Rails::Plugin::Vendored -> Rails::Plugin | |||||
| * | Rename rails.rb -> rails/all.rb and rails/core.rb -> rails.rb | Carl Lerche | 2009-12-31 | 1 | -1/+2 | |
| | | ||||||
| * | Add a /rails.rb for each framework for consistency | Carl Lerche | 2009-12-31 | 1 | -0/+1 | |
| | | ||||||
| * | Move ActiveRecord callbacks implementation to ActiveModel and make use of it. | José Valim | 2009-12-28 | 1 | -0/+91 | |
| | | | | | | | | Signed-off-by: Yehuda Katz <wycats@Yehuda-Katz.local> | |||||
| * | Merge commit 'josevalim/validations' | Jeremy Kemper | 2009-12-28 | 14 | -281/+311 | |
| |\ | ||||||
| | * | No need to use ValidationsRepairHelper hack on ActiveModel anymore, ↵ | José Valim | 2009-12-23 | 1 | -35/+0 | |
| | | | | | | | | | | | | Model.reset_callbacks(:validate) is enough. However, tests in ActiveRecord are still coupled, so moved ValidationsRepairHelper back there. | |||||
| | * | Small clean up in Naming and TTranslation tests. | José Valim | 2009-12-23 | 2 | -25/+23 | |
| | | | ||||||
| | * | ActiveRecord::Validations are now built on top of Validator as well. | José Valim | 2009-12-23 | 3 | -6/+11 | |
| | | | ||||||
| | * | validates_each uses a BlockValidator. | José Valim | 2009-12-23 | 4 | -41/+48 | |
| | | | ||||||
| | * | Added check_validity! to EachValidator and refactor existing ones. | José Valim | 2009-12-23 | 5 | -74/+90 | |
| | | | ||||||
| | * | Move validations in ActiveModel to validators, however all validatity checks ↵ | José Valim | 2009-12-23 | 10 | -153/+195 | |
| | | | | | | | | | | | | are still in the class method. | |||||
| | * | Validator is simply sent to validate method. However, the API needs to ↵ | José Valim | 2009-12-22 | 2 | -9/+6 | |
| | | | | | | | | | | | | change, so validate accepts a record. | |||||
| * | | All AMo modules are safe to defer | Joshua Peek | 2009-12-22 | 1 | -0/+1 | |
| |/ | ||||||
| * | Ruby 1.9.2: explicitly raise NoMethodError for explicit coercion attempts | Jeremy Kemper | 2009-12-06 | 1 | -0/+4 | |
| | | ||||||
* | | Merge remote branch 'mainstream/master' | Pratik Naik | 2009-11-17 | 5 | -20/+151 | |
|\| | | | | | | | | | Conflicts: activesupport/lib/active_support/core_ext/hash/conversions.rb | |||||
| * | Uses Hash#reverse_merge | Jeremy Kemper | 2009-11-13 | 1 | -0/+2 | |
| | | ||||||
| * | Fix error_messages_for when instance variable names are given. | José Valim | 2009-10-21 | 1 | -0/+3 | |
| | | | | | | | | Signed-off-by: Joshua Peek <josh@joshpeek.com> | |||||
| * | Move validator, human_name and human_attribute_name to ActiveModel, remove ↵ | José Valim | 2009-10-20 | 5 | -14/+142 | |
| | | | | | | | | | | | | deprecated error messages and add i18n_scope and lookup_ancestors. Signed-off-by: Carl Lerche <carllerche@mac.com> | |||||
| * | Callbacks, DeprecatedCallbacks = NewCallbacks, Callbacks | Joshua Peek | 2009-10-12 | 1 | -6/+4 | |
| | | ||||||
* | | Merge commit 'mainstream/master' | Pratik Naik | 2009-10-10 | 2 | -50/+35 | |
|\| | ||||||
| * | Rewrite ActiveModel::Lint as a simple TU mixin | Joshua Peek | 2009-10-07 | 1 | -48/+30 | |
| | | ||||||
| * | Fixed behavior of attribute_methods_generated? [#3220 state:resolved] | Sam Pohlenz | 2009-10-07 | 1 | -1/+1 | |
| | | | | | | | | Signed-off-by: Joshua Peek <josh@joshpeek.com> | |||||
| * | Don't share attribute matchers between classes [#3216 state:resolved] | Sam Pohlenz | 2009-10-07 | 1 | -1/+4 | |
| | | | | | | | | | | | | | | Allows separate models that include ActiveModel::AttributeMethods to use different sets of attribute matchers. Signed-off-by: Joshua Peek <josh@joshpeek.com> | |||||
* | | Merge commit 'mainstream/master' | Pratik Naik | 2009-09-30 | 1 | -3/+3 | |
|\| | ||||||
| * | Use ActiveModel::TestCase base class | Jeremy Kemper | 2009-09-24 | 1 | -3/+3 | |
| | | ||||||
* | | Merge commit 'mainstream/master' | Pratik Naik | 2009-09-21 | 9 | -57/+44 | |
|\| | ||||||
| * | fixed ActiveModel::Lint typos [#3236 state:resolved] | lakshan | 2009-09-21 | 1 | -4/+3 | |
| | | | | | | | | Signed-off-by: Joshua Peek <josh@joshpeek.com> | |||||
| * | Fix typo. | Brian Donovan | 2009-09-17 | 1 | -1/+1 | |
| | | | | | | | | Signed-off-by: Yehuda Katz <wycats@gmail.com> | |||||
| * | Ensure validation errors to be ordered in declared order | Akira Matsuda | 2009-09-11 | 1 | -1/+2 | |
| | | | | | | | | | | | | [#2301 state:committed milestone:2.3.5] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | |||||
| * | Refactor new callbacks and AR implementation. | José Valim | 2009-09-08 | 1 | -2/+2 | |
| | | | | | | | | Signed-off-by: Joshua Peek <josh@joshpeek.com> | |||||
| * | Changed ActiveRecord to use new callbacks and speed up observers by only ↵ | José Valim | 2009-09-08 | 4 | -34/+28 | |
| | | | | | | | | | | | | notifying events that are actually being consumed. Signed-off-by: Joshua Peek <josh@joshpeek.com> | |||||
| * | Fix warnings in AMo | Joshua Peek | 2009-09-05 | 2 | -2/+3 | |
| | | ||||||
| * | Kill AMo observing wrap_with_notifications since ARes was only using it | Joshua Peek | 2009-09-02 | 1 | -17/+0 | |
| | | ||||||
| * | License, version, and gemspec for ActiveModel. Ship it! | Joshua Peek | 2009-08-31 | 1 | -0/+9 | |
| | |