mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
This is also a model
This commit is contained in:
parent
be6ff39199
commit
392e627b12
1 changed files with 1 additions and 1 deletions
|
@ -360,7 +360,7 @@ module ApplicationTests
|
|||
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
|
||||
|
|
Loading…
Reference in a new issue