aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2014-05-12 10:26:20 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2014-05-12 15:54:46 -0700
commit3d9bd2ac9482eabf4ee0ed286952ccd19207e851 (patch)
tree934f3a9b3d8c47335dc4673f276c2c265f9cd078 /actionpack/test
parentcfdda38088c95194c3d8bb2fedb70bc06e8fe2e0 (diff)
downloadrails-3d9bd2ac9482eabf4ee0ed286952ccd19207e851.tar.gz
rails-3d9bd2ac9482eabf4ee0ed286952ccd19207e851.tar.bz2
rails-3d9bd2ac9482eabf4ee0ed286952ccd19207e851.zip
this class is a model, so it should act like one
Diffstat (limited to 'actionpack/test')
-rw-r--r--actionpack/test/dispatch/prefix_generation_test.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/actionpack/test/dispatch/prefix_generation_test.rb b/actionpack/test/dispatch/prefix_generation_test.rb
index 08501d19c0..cd31e8e326 100644
--- a/actionpack/test/dispatch/prefix_generation_test.rb
+++ b/actionpack/test/dispatch/prefix_generation_test.rb
@@ -15,6 +15,9 @@ module TestGenerationPrefix
ActiveModel::Name.new(klass)
end
+
+ def to_model; self; end
+ def persisted?; true; end
end
class WithMountedEngine < ActionDispatch::IntegrationTest