aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/test/cases/conversion_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* Rename new method to_path to to_partial_path to avoid conflicts with ↵José Valim2011-08-011-3/+3
| | | | File#to_path and similar.
* Let ActiveModel instances define partial paths.Grant Hutchins & Peter Jaros2011-07-251-1/+8
| | | | | | Deprecate ActiveModel::Name#partial_path. Now you should call #to_path directly on ActiveModel instances.
* Require persisted? in ActiveModel::Lint and remove new_record? and ↵José Valim2010-02-211-2/+2
| | | | destroyed? methods. ActionPack does not care if the resource is new or if it was destroyed, it cares only if it's persisted somewhere or not.
* Add to_key and to_param methods to ActiveModel::Conversion.José Valim2010-02-211-0/+25