diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-05-12 20:54:06 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-05-12 20:54:06 -0300 |
commit | be6ff3919921acf12661af0dd37407dfd2b15788 (patch) | |
tree | ffd42a3c74ed377a733ee1255c91ef8f766753b0 /railties | |
parent | c24c9def366371a3cafcbd831c3fccab14f36c2d (diff) | |
download | rails-be6ff3919921acf12661af0dd37407dfd2b15788.tar.gz rails-be6ff3919921acf12661af0dd37407dfd2b15788.tar.bz2 rails-be6ff3919921acf12661af0dd37407dfd2b15788.zip |
This model is a model so it should behaves like one
Diffstat (limited to 'railties')
-rw-r--r-- | railties/test/railties/mounted_engine_test.rb | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/railties/test/railties/mounted_engine_test.rb b/railties/test/railties/mounted_engine_test.rb index 0ef2ff2e2e..fb2071c7c3 100644 --- a/railties/test/railties/mounted_engine_test.rb +++ b/railties/test/railties/mounted_engine_test.rb @@ -88,18 +88,14 @@ module ApplicationTests @plugin.write "app/models/blog/post.rb", <<-RUBY module Blog class Post - extend ActiveModel::Naming + include ActiveModel::Model def id 44 end - def to_param - id.to_s - end - - def new_record? - false + def persisted? + true end end end |