aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel
Commit message (Collapse)AuthorAgeFilesLines
* Merge remote branch 'mainstream/master'Pratik Naik2009-11-1713-44/+242
|\ | | | | | | | | Conflicts: activesupport/lib/active_support/core_ext/hash/conversions.rb
| * Uses Hash#reverse_mergeJeremy Kemper2009-11-131-0/+2
| |
| * Unify test:isolated across components and run by default at toplevelJeremy Kemper2009-11-101-5/+7
| |
| * Avoid adding component lib/ to load path multiple timesJoshua Peek2009-11-091-1/+3
| |
| * Make Rakefile usable outside of base dirJeremy Kemper2009-11-091-9/+10
| |
| * 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-2011-20/+208
| | | | | | | | | | | | deprecated error messages and add i18n_scope and lookup_ancestors. Signed-off-by: Carl Lerche <carllerche@mac.com>
| * Have all the tests running off a single GemfileYehuda Katz + Carl Lerche2009-10-202-19/+6
| |
| * Add arel to AMo gemfileJoshua Peek2009-10-201-0/+1
| |
| * We won't be publishing tars and zips anymoreJoshua Peek2009-10-161-3/+1
| |
| * Bundle AMoYehuda Katz2009-10-152-2/+18
| |
| * Callbacks, DeprecatedCallbacks = NewCallbacks, CallbacksJoshua Peek2009-10-121-6/+4
| |
* | Merge commit 'mainstream/master'Pratik Naik2009-10-104-82/+89
|\|
| * Rewrite ActiveModel::Lint as a simple TU mixinJoshua Peek2009-10-072-80/+38
| |
| * Fixed behavior of attribute_methods_generated? [#3220 state:resolved]Sam Pohlenz2009-10-072-1/+27
| | | | | | | | Signed-off-by: Joshua Peek <josh@joshpeek.com>
| * Don't share attribute matchers between classes [#3216 state:resolved]Sam Pohlenz2009-10-072-1/+24
| | | | | | | | | | | | | | 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-306-58/+22
|\|
| * Use ActiveModel::TestCase base classJeremy Kemper2009-09-244-7/+7
| |
| * Make gemspecs the authoritative source instead of generating them from the ↵Joshua Peek2009-09-252-51/+15
| | | | | | | | Rakefile
* | Merge commit 'mainstream/master'Pratik Naik2009-09-2124-133/+186
|\|
| * 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>
| * Fix deprecated gem-name requiresJeremy Kemper2009-09-141-1/+1
| |
| * Revert "Allow frameworks to be required by their gem name"Jeremy Kemper2009-09-121-1/+0
| | | | | | | | | | | | | | This has just been confusing. Better to educate than band-aid. This reverts commit 18a24274ec823ded4ffa29bf33fd3d76816aab7e. Originally from http://dev.rubyonrails.org/ticket/8845 [drnic]
| * Ensure validation errors to be ordered in declared orderAkira Matsuda2009-09-112-1/+18
| | | | | | | | | | | | [#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-088-57/+38
| | | | | | | | | | | | notifying events that are actually being consumed. Signed-off-by: Joshua Peek <josh@joshpeek.com>
| * Fix warnings in AMoJoshua Peek2009-09-057-50/+9
| |
| * Fix failing AMo isolated testsJoshua Peek2009-09-054-0/+7
| |
| * Kill AMo observing wrap_with_notifications since ARes was only using itJoshua Peek2009-09-021-17/+0
| |
| * Add required dependencies on activemodelCarl Lerche2009-09-011-1/+1
| |
| * Add rake gemspec and gemspecs to the repoYehuda Katz2009-08-312-0/+37
| |
| * License, version, and gemspec for ActiveModel. Ship it!Joshua Peek2009-08-314-3/+74
| |
* | 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-3118-131/+687
|\|
| * added proc and symbol support to validates_numericality_of [#3049 ↵Kane2009-08-312-1/+38
| | | | | | | | | | | | 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-293-0/+147
| |
| * Remove support for SQLite 2.Pratik Naik2009-08-171-9/+4
| | | | | | | | If you're still using it, please install the plugin from git://github.com/rails/sqlite2_adapter.git
| * Break up concerns for choosing what attributes should be serialized and the ↵Joshua Peek2009-08-135-99/+87
| | | | | | | | actual serializer
| * Extract common dirty tracking methods in AMoJoshua Peek2009-08-102-0/+113
| |
| * AMo overrides alias_attribute and manages aliasing all known attribute ↵Joshua Peek2009-08-101-0/+10
| | | | | | | | method matchers
| * Centralize attr method name concatenation in AttributeMethodMatchJoshua Peek2009-08-101-11/+22
| |
| * Move :with/:without check outside the method generated by validates_format_ofPratik Naik2009-08-101-6/+6
| |
| * Add validates_format_of :without => /regexp/ option [Elliot Winkler, Peer Allan]Elliot Winkler2009-08-103-8/+64
| | | | | | | | | | | | | | | | | | | | [#430 state:resolved] Example : validates_format_of :subdomain, :without => /www|admin|mail/ Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
| * Introduce validates_with to encapsulate attribute validations in a class.Jeff Dean2009-08-094-1/+186
| | | | | | | | | | | | [#2630 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* | Merge commit 'mainstream/master'Pratik Naik2009-08-0913-42/+395
|\|
| * Fix exclusive range patch to use begin/end instead of min/max. [#2981 ↵Adam Keys2009-08-082-4/+22
| | | | | | | | | | | | | | status:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
| * Simplyfy validates_length_of and remove putsPratik Naik2009-08-082-5/+7
| |