aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/test/models
diff options
context:
space:
mode:
authorGrant Hutchins & Peter Jaros <pair+grant+pjaros@pivotallabs.com>2011-07-08 17:54:15 -0400
committerGrant Hutchins & Peter Jaros <pair+grant+pjaros@pivotallabs.com>2011-07-25 16:05:24 -0400
commitbf812074fd55e7dcfa426d6c9bfd4d8d68922194 (patch)
tree7e0f2861673407c7278a915134d4a5076dafa531 /activemodel/test/models
parent8e0061128e8946d6e6fab68c078517db668ef050 (diff)
downloadrails-bf812074fd55e7dcfa426d6c9bfd4d8d68922194.tar.gz
rails-bf812074fd55e7dcfa426d6c9bfd4d8d68922194.tar.bz2
rails-bf812074fd55e7dcfa426d6c9bfd4d8d68922194.zip
Let ActiveModel instances define partial paths.
Deprecate ActiveModel::Name#partial_path. Now you should call #to_path directly on ActiveModel instances.
Diffstat (limited to 'activemodel/test/models')
-rw-r--r--activemodel/test/models/helicopter.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/activemodel/test/models/helicopter.rb b/activemodel/test/models/helicopter.rb
new file mode 100644
index 0000000000..a52b6fb4dd
--- /dev/null
+++ b/activemodel/test/models/helicopter.rb
@@ -0,0 +1,3 @@
+class Helicopter
+ include ActiveModel::Conversion
+end