aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/lib
Commit message (Collapse)AuthorAgeFilesLines
* 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-101-8/+29
| | | | | | | | | | [#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-091-0/+64
| | | | | | [#2630 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Fix exclusive range patch to use begin/end instead of min/max. [#2981 ↵Adam Keys2009-08-081-4/+8
| | | | | | | 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-081-4/+7
|
* validates_length_of with maximum should allow nil [#2309 status:resolved]jzw2009-08-081-2/+4
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Use send instead of instance_evalPratik Naik2009-08-062-4/+4
|
* Allow validations to use values from custom readers [#2936 state:resolved]James Hill2009-08-052-4/+26
| | | | Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Extract generic attribute method generation to AMoJoshua Peek2009-08-042-0/+268
|
* Add simple support for ActiveModel's StateMachine for ActiveRecordJoshua Peek2009-08-044-29/+21
|
* Add support for error_messages_for(@obj)Yehuda Katz2009-07-281-1/+2
|
* Dasherize XML root by default to avoid invalid tags ↵Joshua Peek2009-07-221-1/+1
| | | | "<admin/posts>...</admin/posts>" [#2875 state:resolved]
* Patch to ActiveModel's (and ActiveRecord, by association) XML serialization: ↵John Maxwell2009-07-221-1/+5
| | | | | | If two parameters are present in Procs supplied to to_xml's :procs option, the model being serialized will be passed as the second argument [#2373 state:resolved] Signed-off-by: Joshua Peek <josh@joshpeek.com>
* So you can require 'activemodel'Joshua Peek2009-07-211-0/+1
|
* AMo conversion helperJoshua Peek2009-07-213-26/+9
|
* Kill AMo BaseJoshua Peek2009-07-212-9/+0
|
* Improve AMo observing docsJoshua Peek2009-07-211-4/+73
|
* Add wrap_with_notifications helper to AMo observingJoshua Peek2009-07-201-2/+20
|
* Kill AMo ivar attributes helperJoshua Peek2009-07-204-28/+0
|
* Define ActiveModel API ComplianceYehuda Katz2009-07-202-0/+26
| | | | | | - Define to_model on AR - Define to_model on ActiveModel::APICompliant - Update test fixtures to be API Compliant - Start using to_model in AP
* Add some missing dependenciesYehuda Katz2009-07-151-0/+2
|
* Integrate AMo XML serializer into ARJoshua Peek2009-07-111-22/+27
|
* Integrate AMo JSON serializer into ARJoshua Peek2009-07-033-31/+110
|
* Initial extraction of AMo xml serializerJoshua Peek2009-07-034-15/+243
|
* Ensure JSON serializer includes model naming Joshua Peek2009-07-031-0/+2
|
* Add basic JSON serializer to AMoJoshua Peek2009-06-172-0/+42
|
* Add simple attribute implementation backed by ivarsJoshua Peek2009-06-172-0/+18
|
* Simplify AMo validation attribute readerJoshua Peek2009-06-172-8/+4
|
* Move model naming into ActiveModelJoshua Peek2009-06-172-0/+27
|
* Move observing notify helper into AMoJoshua Peek2009-06-111-0/+6
|
* Fix observing AS dependenciesJoshua Peek2009-06-111-0/+2
|
* Integrate ActiveModel::Observing into ActiveRecordJoshua Peek2009-06-102-50/+67
|
* each yields per message not per attributeJeremy Kemper2009-06-081-0/+1
|
* Properly require ActiveModel validation dependenciesJoshua Peek2009-06-0811-29/+35
|
* Fix activesupport pathJoshua Peek2009-06-081-3/+1
|
* AM::StateMachine autoloadsJeremy Kemper2009-05-301-0/+5
|
* Use AS::Concern in ActiveModelJoshua Peek2009-05-302-9/+6
|
* Merge branch 'master' into active_modelJoshua Peek2009-05-292-10/+7
|\ | | | | | | | | | | | | | | | | | | | | 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
| * Cherry-pick the inflector onlyJeremy Kemper2009-05-051-11/+2
| |
| * Fix tests on 1.9Jeremy Kemper2009-04-221-1/+1
| |
| * No more free lunchJeremy Kemper2009-04-221-5/+10
| |
* | Deprecate Model#validate/validate_on_create/validate_on_update. Use ↵Pratik Naik2009-03-211-9/+0
| | | | | | | | Model.validate :method and likewise
* | Deprecate Errors#on_base/add_to_base/invalid?/each_fullPratik Naik2009-03-211-5/+5
| |
* | Get rid of active_model/core and active_model/callbacksPratik Naik2009-03-214-17/+0
| |
* | Validation options dont need explicit :on => :savePratik Naik2009-03-211-1/+1
| |
* | Remove DEFAULT_VALIDATION_OPTIONS from validationsPratik Naik2009-03-212-5/+1
| |