diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-07-02 00:24:51 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-07-02 00:24:51 -0300 |
commit | 9aaa3111b0b795acdb9b7035bbaa50565c7284aa (patch) | |
tree | d1cb1cfcfba3fbc9f3ea592802cf8ee921e0effd /railties/test | |
parent | c60a4853ab5a4dc5ce644e68ca762d8a29045d4f (diff) | |
download | rails-9aaa3111b0b795acdb9b7035bbaa50565c7284aa.tar.gz rails-9aaa3111b0b795acdb9b7035bbaa50565c7284aa.tar.bz2 rails-9aaa3111b0b795acdb9b7035bbaa50565c7284aa.zip |
Use block instead passing as argument
Diffstat (limited to 'railties/test')
-rw-r--r-- | railties/test/application/loading_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/test/application/loading_test.rb b/railties/test/application/loading_test.rb index f05eade81f..4f30f30f95 100644 --- a/railties/test/application/loading_test.rb +++ b/railties/test/application/loading_test.rb @@ -36,7 +36,7 @@ class LoadingTest < ActiveSupport::TestCase 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 |