Sha256: 323793090206bfbebb2aacbffa7c0a8e27da1b9f8b70d9a6e4aa494e764f606e
Contents?: true
Size: 234 Bytes
Versions: 1
Compression:
Stored size: 234 Bytes
Contents
class Reader < ActiveRecord::Base self.primary_key = 'number' scope :not_foo, -> { where('name <> "foo"') } scope :not_bar, -> { where('name <> "bar"') } acts_as_reader def self.reader_scope not_foo.not_bar end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
unread-0.7.0 | spec/app/models/reader.rb |