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

Version Path
unread-0.10.0 spec/app/models/reader.rb
unread-0.9.1 spec/app/models/reader.rb
unread-0.9.0 spec/app/models/reader.rb
unread-0.8.3 spec/app/models/reader.rb
unread-0.8.2 spec/app/models/reader.rb
unread-0.8.1 spec/app/models/reader.rb
unread-0.8.0 spec/app/models/reader.rb
unread-0.7.1 spec/app/models/reader.rb