Sha256: bd3081f7801a88ad84638ce31ef0c242468a47cc53b6323a53cf0c1f1326ee58
Contents?: true
Size: 234 Bytes
Versions: 8
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
8 entries across 8 versions & 1 rubygems