aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/lib/active_model.rb
Commit message (Collapse)AuthorAgeFilesLines
...
| * No need to use ValidationsRepairHelper hack on ActiveModel anymore, ↵José Valim2009-12-231-1/+0
| | | | | | | | Model.reset_callbacks(:validate) is enough. However, tests in ActiveRecord are still coupled, so moved ValidationsRepairHelper back there.
| * validates_each uses a BlockValidator.José Valim2009-12-231-0/+1
| |
| * Move validations in ActiveModel to validators, however all validatity checks ↵José Valim2009-12-231-2/+3
| | | | | | | | are still in the class method.
* | Use i18nJeremy Kemper2009-12-271-0/+1
|/
* Fully expand relative rails framework paths and make sure we aren'tJoshua Peek2009-12-161-2/+3
| | | | adding any to the load path more than once.
* Reorganize autoloads:Carlhuda2009-12-021-20/+23
| | | | | | | | | | | | | | | | | | | | | * A new module (ActiveSupport::Autoload) is provide that extends autoloading with new behavior. * All autoloads in modules that have extended ActiveSupport::Autoload will be eagerly required in threadsafe environments * Autoloads can optionally leave off the path if the path is the same as full_constant_name.underscore * It is possible to specify that a group of autoloads live under an additional path. For instance, all of ActionDispatch's middlewares are ActionDispatch::MiddlewareName, but they live under "action_dispatch/middlewares/middleware_name" * It is possible to specify that a group of autoloads are all found at the same path. For instance, a number of exceptions might all be declared there. * One consequence of this is that testing-related constants are not autoloaded. To get the testing helpers for a given component, require "component_name/test_case". For instance, "action_controller/test_case". * test_help.rb, which is automatically required by a Rails application's test helper, requires the test_case.rb for all active components, so this change will not be disruptive in existing or new applications.
* Move validator, human_name and human_attribute_name to ActiveModel, remove ↵José Valim2009-10-201-0/+2
| | | | | | deprecated error messages and add i18n_scope and lookup_ancestors. Signed-off-by: Carl Lerche <carllerche@mac.com>
* License, version, and gemspec for ActiveModel. Ship it!Joshua Peek2009-08-311-0/+1
|
* Initial AMo Lint implementationYehuda Katz2009-08-291-0/+1
|
* Break up concerns for choosing what attributes should be serialized and the ↵Joshua Peek2009-08-131-1/+1
| | | | actual serializer
* Extract common dirty tracking methods in AMoJoshua Peek2009-08-101-0/+1
|
* Extract generic attribute method generation to AMoJoshua Peek2009-08-041-0/+1
|
* AMo conversion helperJoshua Peek2009-07-211-1/+1
|
* Kill AMo BaseJoshua Peek2009-07-211-1/+0
|
* Kill AMo ivar attributes helperJoshua Peek2009-07-201-1/+0
|
* Define ActiveModel API ComplianceYehuda Katz2009-07-201-0/+1
| | | | | | - Define to_model on AR - Define to_model on ActiveModel::APICompliant - Update test fixtures to be API Compliant - Start using to_model in AP
* Initial extraction of AMo xml serializerJoshua Peek2009-07-031-0/+2
|
* Add basic JSON serializer to AMoJoshua Peek2009-06-171-0/+4
|
* Add simple attribute implementation backed by ivarsJoshua Peek2009-06-171-0/+1
|
* Move model naming into ActiveModelJoshua Peek2009-06-171-0/+2
|
* Integrate ActiveModel::Observing into ActiveRecordJoshua Peek2009-06-101-4/+5
|
* Fix activesupport pathJoshua Peek2009-06-081-3/+1
|
* Merge branch 'master' into active_modelJoshua Peek2009-05-291-9/+5
|\ | | | | | | | | | | | | | | | | | | | | Conflicts: activemodel/lib/active_model/core.rb activemodel/test/cases/state_machine/event_test.rb activemodel/test/cases/state_machine/state_transition_test.rb activerecord/lib/active_record/validations.rb activerecord/test/cases/validations/i18n_validation_test.rb activeresource/lib/active_resource.rb activeresource/test/abstract_unit.rb
* | Add I18n translations to ActiveModel and move more AR specific parts to ↵Pratik Naik2009-03-201-0/+2
| | | | | | | | ActiveRecord::Validations
* | ActiveModel.load_all! isn't really needed at this pointPratik Naik2009-03-201-4/+0
| |
* | Make Active Model test suite similar to Active RecordPratik Naik2009-03-201-0/+3
| |
* | Autload ActiveModel::ObservingPratik Naik2009-03-201-0/+1
| |
* | Move all the Active Record validations to Active ModelPratik Naik2009-03-191-5/+43
|/
* tweak activemodel load order a bitrick2008-06-271-16/+4
|
* initial experimental commit of active_modelRick Olson2007-11-091-0/+17
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8118 5ecf4fe2-1ee6-0310-87b1-e25e094e27de