aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/lib
diff options
context:
space:
mode:
authorJoshua Peek <josh@joshpeek.com>2009-06-17 10:37:39 -0500
committerJoshua Peek <josh@joshpeek.com>2009-06-17 10:37:39 -0500
commit1c4d28ba314c8cdd0039becf3bc9e678219b8f46 (patch)
tree67a4b6db06cc9c26145de94f06f3fe8e1adf7953 /actionpack/test/lib
parent85f2f34d5ec8ccdea4755740b810ac514d9f3dd9 (diff)
downloadrails-1c4d28ba314c8cdd0039becf3bc9e678219b8f46.tar.gz
rails-1c4d28ba314c8cdd0039becf3bc9e678219b8f46.tar.bz2
rails-1c4d28ba314c8cdd0039becf3bc9e678219b8f46.zip
Move model naming into ActiveModel
Diffstat (limited to 'actionpack/test/lib')
-rw-r--r--actionpack/test/lib/controller/fake_models.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/actionpack/test/lib/controller/fake_models.rb b/actionpack/test/lib/controller/fake_models.rb
index 0b30c79b10..5e63204bad 100644
--- a/actionpack/test/lib/controller/fake_models.rb
+++ b/actionpack/test/lib/controller/fake_models.rb
@@ -1,4 +1,6 @@
class Customer < Struct.new(:name, :id)
+ extend ActiveModel::Naming
+
def to_param
id.to_s
end
@@ -12,6 +14,8 @@ end
module Quiz
class Question < Struct.new(:name, :id)
+ extend ActiveModel::Naming
+
def to_param
id.to_s
end