aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/activerecord
diff options
context:
space:
mode:
authorJoshua Peek <josh@joshpeek.com>2009-07-21 00:51:57 -0500
committerJoshua Peek <josh@joshpeek.com>2009-07-21 00:51:57 -0500
commit92c00d75869b173f44ff9d68f219a99e6dc3bd82 (patch)
treea5c11b3810d7739de8dcac6cedaa2879810de4a8 /actionpack/test/activerecord
parent6944b391cddbf1a3ffb3ac4ac588fa4b3d50f430 (diff)
downloadrails-92c00d75869b173f44ff9d68f219a99e6dc3bd82.tar.gz
rails-92c00d75869b173f44ff9d68f219a99e6dc3bd82.tar.bz2
rails-92c00d75869b173f44ff9d68f219a99e6dc3bd82.zip
AMo conversion helper
Diffstat (limited to 'actionpack/test/activerecord')
-rw-r--r--actionpack/test/activerecord/render_partial_with_record_identification_test.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/actionpack/test/activerecord/render_partial_with_record_identification_test.rb b/actionpack/test/activerecord/render_partial_with_record_identification_test.rb
index 0122bc7d8f..df50c3dc6f 100644
--- a/actionpack/test/activerecord/render_partial_with_record_identification_test.rb
+++ b/actionpack/test/activerecord/render_partial_with_record_identification_test.rb
@@ -126,7 +126,8 @@ class RenderPartialWithRecordIdentificationController < ActionController::Base
end
class Game < Struct.new(:name, :id)
- extend ActiveModel::APICompliant
+ extend ActiveModel::Naming
+ include ActiveModel::Conversion
def to_param
id.to_s
end