aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models/without_table.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/test/models/without_table.rb')
-rw-r--r--activerecord/test/models/without_table.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/activerecord/test/models/without_table.rb b/activerecord/test/models/without_table.rb
index 1a63d6ceb6..184ab1649e 100644
--- a/activerecord/test/models/without_table.rb
+++ b/activerecord/test/models/without_table.rb
@@ -1,5 +1,3 @@
class WithoutTable < ActiveRecord::Base
- def self.default_scope
- where(:published => true)
- end
+ default_scope where(:published => true)
end