diff options
Diffstat (limited to 'activerecord/test/models/without_table.rb')
-rw-r--r-- | activerecord/test/models/without_table.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/activerecord/test/models/without_table.rb b/activerecord/test/models/without_table.rb index 87f80911e1..1a63d6ceb6 100644 --- a/activerecord/test/models/without_table.rb +++ b/activerecord/test/models/without_table.rb @@ -1,3 +1,5 @@ class WithoutTable < ActiveRecord::Base - default_scope where(:published => true) -end
\ No newline at end of file + def self.default_scope + where(:published => true) + end +end |