This is also a model

上级 be6ff391
......@@ -360,7 +360,7 @@ def index
test "default method for update can be changed" do
app_file 'app/models/post.rb', <<-RUBY
class Post
extend ActiveModel::Naming
include ActiveModel::Model
def to_key; [1]; end
def persisted?; true; end
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册