1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

This model is a model so it should behaves like one

This commit is contained in:
Rafael Mendonça França 2014-05-12 20:54:06 -03:00
parent c24c9def36
commit be6ff39199

View file

@ -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