aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/lib/active_model
Commit message (Collapse)AuthorAgeFilesLines
* Adding ActiveModel::AttributeMethods documentationMikel Lindsaar2010-01-171-21/+120
|
* Adding RDoc for active_model dirtyMikel Lindsaar2010-01-161-1/+39
|
* ActiveModel::Conversion documentationMikel Lindsaar2010-01-151-1/+12
|
* ActiveModel::Callbacks documentationMikel Lindsaar2010-01-151-31/+73
|
* Merge remote branch 'mainstream/master'Pratik Naik2010-01-0419-286/+429
|\
| * Add missing tests to Validators.José Valim2010-01-031-1/+2
| |
| * Add naming to AMo::LintJosé Valim2010-01-021-0/+14
| |
| * Use activerecord.errors.format as in Rails 2.3.5.José Valim2010-01-022-3/+6
| |
| * Be sure to convert namespaced names to we have 'Parrots name' instead of ↵José Valim2010-01-021-2/+3
| | | | | | | | 'Parrots.name' in error messages.
| * Ruby 1.9.2: explicit coercion check no longer needed; bug fixed upstreamJeremy Kemper2010-01-011-4/+0
| |
| * Some railties cleanup:Carl Lerche2009-12-311-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.rbCarl Lerche2009-12-311-1/+2
| |
| * Add a /rails.rb for each framework for consistencyCarl Lerche2009-12-311-0/+1
| |
| * Move ActiveRecord callbacks implementation to ActiveModel and make use of it.José Valim2009-12-281-0/+91
| | | | | | | | Signed-off-by: Yehuda Katz <wycats@Yehuda-Katz.local>
| * Merge commit 'josevalim/validations'Jeremy Kemper2009-12-2814-281/+311
| |\
| | * No need to use ValidationsRepairHelper hack on ActiveModel anymore, ↵José Valim2009-12-231-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é Valim2009-12-232-25/+23
| | |
| | * ActiveRecord::Validations are now built on top of Validator as well.José Valim2009-12-233-6/+11
| | |
| | * validates_each uses a BlockValidator.José Valim2009-12-234-41/+48
| | |
| | * Added check_validity! to EachValidator and refactor existing ones.José Valim2009-12-235-74/+90
| | |
| | * Move validations in ActiveModel to validators, however all validatity checks ↵José Valim2009-12-2310-153/+195
| | | | | | | | | | | | are still in the class method.
| | * Validator is simply sent to validate method. However, the API needs to ↵José Valim2009-12-222-9/+6
| | | | | | | | | | | | change, so validate accepts a record.
| * | All AMo modules are safe to deferJoshua Peek2009-12-221-0/+1
| |/
| * Ruby 1.9.2: explicitly raise NoMethodError for explicit coercion attemptsJeremy Kemper2009-12-061-0/+4
| |
* | Merge remote branch 'mainstream/master'Pratik Naik2009-11-175-20/+151
|\| | | | | | | | | Conflicts: activesupport/lib/active_support/core_ext/hash/conversions.rb
| * Uses Hash#reverse_mergeJeremy Kemper2009-11-131-0/+2
| |
| * Fix error_messages_for when instance variable names are given.José Valim2009-10-211-0/+3
| | | | | | | | Signed-off-by: Joshua Peek <josh@joshpeek.com>
| * Move validator, human_name and human_attribute_name to ActiveModel, remove ↵José Valim2009-10-205-14/+142
| | | | | | | | | | | | deprecated error messages and add i18n_scope and lookup_ancestors. Signed-off-by: Carl Lerche <carllerche@mac.com>
| * Callbacks, DeprecatedCallbacks = NewCallbacks, CallbacksJoshua Peek2009-10-121-6/+4
| |
* | Merge commit 'mainstream/master'Pratik Naik2009-10-102-50/+35
|\|
| * Rewrite ActiveModel::Lint as a simple TU mixinJoshua Peek2009-10-071-48/+30
| |
| * Fixed behavior of attribute_methods_generated? [#3220 state:resolved]Sam Pohlenz2009-10-071-1/+1
| | | | | | | | Signed-off-by: Joshua Peek <josh@joshpeek.com>
| * Don't share attribute matchers between classes [#3216 state:resolved]Sam Pohlenz2009-10-071-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 Naik2009-09-301-3/+3
|\|
| * Use ActiveModel::TestCase base classJeremy Kemper2009-09-241-3/+3
| |
* | Merge commit 'mainstream/master'Pratik Naik2009-09-219-57/+44
|\|
| * fixed ActiveModel::Lint typos [#3236 state:resolved]lakshan2009-09-211-4/+3
| | | | | | | | Signed-off-by: Joshua Peek <josh@joshpeek.com>
| * Fix typo.Brian Donovan2009-09-171-1/+1
| | | | | | | | Signed-off-by: Yehuda Katz <wycats@gmail.com>
| * Ensure validation errors to be ordered in declared orderAkira Matsuda2009-09-111-1/+2
| | | | | | | | | | | | [#2301 state:committed milestone:2.3.5] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
| * Refactor new callbacks and AR implementation.José Valim2009-09-081-2/+2
| | | | | | | | Signed-off-by: Joshua Peek <josh@joshpeek.com>
| * Changed ActiveRecord to use new callbacks and speed up observers by only ↵José Valim2009-09-084-34/+28
| | | | | | | | | | | | notifying events that are actually being consumed. Signed-off-by: Joshua Peek <josh@joshpeek.com>
| * Fix warnings in AMoJoshua Peek2009-09-052-2/+3
| |
| * Kill AMo observing wrap_with_notifications since ARes was only using itJoshua Peek2009-09-021-17/+0
| |
| * License, version, and gemspec for ActiveModel. Ship it!Joshua Peek2009-08-311-0/+9
| |
* | Fixing typo in ActiveRecord::Errors documentationJay Pignata2009-09-171-1/+1
| |
* | Clean up documentation on validates_length_of and change overly juvenile ↵Mike Gunderloy2009-09-151-4/+4
| | | | | | | | example.
* | Merge commit 'mainstream/master'Pratik Naik2009-08-3110-120/+455
|\|
| * added proc and symbol support to validates_numericality_of [#3049 ↵Kane2009-08-311-1/+20
| | | | | | | | | | | | state:resolved] Signed-off-by: Joshua Peek <josh@joshpeek.com>
| * I added this feature so that a Map of changed fields could be retrievedJosh Sharpe2009-08-311-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | after a model had been saved. This is useful in the after_save callback when you need to know what fields changed. At present there is no way to do this other than have code in the before_save callback that takes a copy of the changes Map, which I thought was a bit messy. Example. person = Person.find_by_name('bob') person.name = 'robert' person.changes # => {'name' => ['bob, 'robert']} person.save person.changes # => {} person.previous_changes # => {'name' => ['bob, 'robert']} person.reload person.previous_changes # => {} Signed-off-by: Joshua Peek <josh@joshpeek.com>
| * Initial AMo Lint implementationYehuda Katz2009-08-291-0/+96
| |