diff options
author | Joshua Peek <josh@joshpeek.com> | 2009-07-21 00:51:57 -0500 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2009-07-21 00:51:57 -0500 |
commit | 92c00d75869b173f44ff9d68f219a99e6dc3bd82 (patch) | |
tree | a5c11b3810d7739de8dcac6cedaa2879810de4a8 /actionpack/test/lib | |
parent | 6944b391cddbf1a3ffb3ac4ac588fa4b3d50f430 (diff) | |
download | rails-92c00d75869b173f44ff9d68f219a99e6dc3bd82.tar.gz rails-92c00d75869b173f44ff9d68f219a99e6dc3bd82.tar.bz2 rails-92c00d75869b173f44ff9d68f219a99e6dc3bd82.zip |
AMo conversion helper
Diffstat (limited to 'actionpack/test/lib')
-rw-r--r-- | actionpack/test/lib/controller/fake_models.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/actionpack/test/lib/controller/fake_models.rb b/actionpack/test/lib/controller/fake_models.rb index 07f01e1c47..c6726432ec 100644 --- a/actionpack/test/lib/controller/fake_models.rb +++ b/actionpack/test/lib/controller/fake_models.rb @@ -1,7 +1,8 @@ require "active_model" class Customer < Struct.new(:name, :id) - extend ActiveModel::APICompliant + extend ActiveModel::Naming + include ActiveModel::Conversion def to_param id.to_s @@ -16,7 +17,8 @@ end module Quiz class Question < Struct.new(:name, :id) - extend ActiveModel::APICompliant + extend ActiveModel::Naming + include ActiveModel::Conversion def to_param id.to_s |