Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | 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> | |||||
* | Use ActiveModel::TestCase base class | Jeremy Kemper | 2009-09-24 | 1 | -3/+3 | |
| | ||||||
* | 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 | |
| | ||||||
* | added proc and symbol support to validates_numericality_of [#3049 ↵ | Kane | 2009-08-31 | 1 | -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 retrieved | Josh Sharpe | 2009-08-31 | 1 | -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 implementation | Yehuda Katz | 2009-08-29 | 1 | -0/+96 | |
| | ||||||
* | Break up concerns for choosing what attributes should be serialized and the ↵ | Joshua Peek | 2009-08-13 | 4 | -98/+86 | |
| | | | | actual serializer | |||||
* | Extract common dirty tracking methods in AMo | Joshua Peek | 2009-08-10 | 1 | -0/+112 | |
| | ||||||
* | AMo overrides alias_attribute and manages aliasing all known attribute ↵ | Joshua Peek | 2009-08-10 | 1 | -0/+10 | |
| | | | | method matchers | |||||
* | Centralize attr method name concatenation in AttributeMethodMatch | Joshua Peek | 2009-08-10 | 1 | -11/+22 | |
| | ||||||
* | Move :with/:without check outside the method generated by validates_format_of | Pratik Naik | 2009-08-10 | 1 | -6/+6 | |
| | ||||||
* | Add validates_format_of :without => /regexp/ option [Elliot Winkler, Peer Allan] | Elliot Winkler | 2009-08-10 | 1 | -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 Dean | 2009-08-09 | 1 | -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 Keys | 2009-08-08 | 1 | -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 puts | Pratik Naik | 2009-08-08 | 1 | -4/+7 | |
| | ||||||
* | validates_length_of with maximum should allow nil [#2309 status:resolved] | jzw | 2009-08-08 | 1 | -2/+4 | |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | |||||
* | Use send instead of instance_eval | Pratik Naik | 2009-08-06 | 2 | -4/+4 | |
| | ||||||
* | Allow validations to use values from custom readers [#2936 state:resolved] | James Hill | 2009-08-05 | 2 | -4/+26 | |
| | | | | Signed-off-by: Joshua Peek <josh@joshpeek.com> | |||||
* | Extract generic attribute method generation to AMo | Joshua Peek | 2009-08-04 | 1 | -0/+267 | |
| | ||||||
* | Add simple support for ActiveModel's StateMachine for ActiveRecord | Joshua Peek | 2009-08-04 | 4 | -29/+21 | |
| | ||||||
* | Add support for error_messages_for(@obj) | Yehuda Katz | 2009-07-28 | 1 | -1/+2 | |
| | ||||||
* | Dasherize XML root by default to avoid invalid tags ↵ | Joshua Peek | 2009-07-22 | 1 | -1/+1 | |
| | | | | "<admin/posts>...</admin/posts>" [#2875 state:resolved] | |||||
* | Patch to ActiveModel's (and ActiveRecord, by association) XML serialization: ↵ | John Maxwell | 2009-07-22 | 1 | -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> | |||||
* | AMo conversion helper | Joshua Peek | 2009-07-21 | 2 | -25/+8 | |
| | ||||||
* | Kill AMo Base | Joshua Peek | 2009-07-21 | 1 | -8/+0 | |
| | ||||||
* | Improve AMo observing docs | Joshua Peek | 2009-07-21 | 1 | -4/+73 | |
| | ||||||
* | Add wrap_with_notifications helper to AMo observing | Joshua Peek | 2009-07-20 | 1 | -2/+20 | |
| | ||||||
* | Kill AMo ivar attributes helper | Joshua Peek | 2009-07-20 | 3 | -27/+0 | |
| | ||||||
* | Define ActiveModel API Compliance | Yehuda Katz | 2009-07-20 | 1 | -0/+25 | |
| | | | | | | - 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 dependencies | Yehuda Katz | 2009-07-15 | 1 | -0/+2 | |
| | ||||||
* | Integrate AMo XML serializer into AR | Joshua Peek | 2009-07-11 | 1 | -22/+27 | |
| | ||||||
* | Integrate AMo JSON serializer into AR | Joshua Peek | 2009-07-03 | 3 | -31/+110 | |
| | ||||||
* | Initial extraction of AMo xml serializer | Joshua Peek | 2009-07-03 | 3 | -15/+241 | |
| | ||||||
* | Ensure JSON serializer includes model naming | Joshua Peek | 2009-07-03 | 1 | -0/+2 | |
| | ||||||
* | Add basic JSON serializer to AMo | Joshua Peek | 2009-06-17 | 1 | -0/+38 | |
| | ||||||
* | Add simple attribute implementation backed by ivars | Joshua Peek | 2009-06-17 | 1 | -0/+17 | |
| | ||||||
* | Simplify AMo validation attribute reader | Joshua Peek | 2009-06-17 | 2 | -8/+4 | |
| | ||||||
* | Move model naming into ActiveModel | Joshua Peek | 2009-06-17 | 1 | -0/+25 | |
| | ||||||
* | Move observing notify helper into AMo | Joshua Peek | 2009-06-11 | 1 | -0/+6 | |
| | ||||||
* | Fix observing AS dependencies | Joshua Peek | 2009-06-11 | 1 | -0/+2 | |
| | ||||||
* | Integrate ActiveModel::Observing into ActiveRecord | Joshua Peek | 2009-06-10 | 1 | -46/+62 | |
| |