spec/model/reader.rb in unread-0.4.0 vs spec/model/reader.rb in unread-0.5.0
- old
+ new
@@ -1,4 +1,8 @@
class Reader < ActiveRecord::Base
self.primary_key = 'number'
- acts_as_reader
+
+ scope :not_foo, -> { where('name <> "foo"') }
+ scope :not_bar, -> { where('name <> "bar"') }
+
+ acts_as_reader :scopes => [:not_foo, :not_bar]
end