diff options
author | Joshua Peek <josh@joshpeek.com> | 2009-06-17 10:37:39 -0500 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2009-06-17 10:37:39 -0500 |
commit | 1c4d28ba314c8cdd0039becf3bc9e678219b8f46 (patch) | |
tree | 67a4b6db06cc9c26145de94f06f3fe8e1adf7953 /actionpack/test/lib/controller/fake_models.rb | |
parent | 85f2f34d5ec8ccdea4755740b810ac514d9f3dd9 (diff) | |
download | rails-1c4d28ba314c8cdd0039becf3bc9e678219b8f46.tar.gz rails-1c4d28ba314c8cdd0039becf3bc9e678219b8f46.tar.bz2 rails-1c4d28ba314c8cdd0039becf3bc9e678219b8f46.zip |
Move model naming into ActiveModel
Diffstat (limited to 'actionpack/test/lib/controller/fake_models.rb')
-rw-r--r-- | actionpack/test/lib/controller/fake_models.rb | 4 |
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 |