Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Use block instead passing as argument

  • Loading branch information...
commit 9aaa3111b0b795acdb9b7035bbaa50565c7284aa 1 parent c60a485
@rafaelfranca rafaelfranca authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  railties/test/application/loading_test.rb
View
2  railties/test/application/loading_test.rb
@@ -36,7 +36,7 @@ class Post < ActiveRecord::Base
test "models without table do not panic on scope definitions when loaded" do
app_file "app/models/user.rb", <<-MODEL
class User < ActiveRecord::Base
- default_scope where(published: true)
+ default_scope { where(published: true) }
end
MODEL
Please sign in to comment.
Something went wrong with that request. Please try again.