Sha256: e1b8f4a44b9edf9e91bb1abc83ad91883e47f38e7f888e21fe1e886911125ccb

Contents?: true

Size: 215 Bytes

Versions: 33

Compression:

Stored size: 215 Bytes

Contents

class Office < ActiveRecord::Base
  has_many :employees

  default_scope lambda {
    if $default_office_scope
      where $default_office_scope
    end
  }

  scope :usa, -> {
    where(:country => "USA")
  }

end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
directiverecord-0.1.32 test/application/app/models/office.rb
directiverecord-0.1.31 test/application/app/models/office.rb
directiverecord-0.1.30 test/application/app/models/office.rb
directiverecord-0.1.29 test/application/app/models/office.rb
directiverecord-0.1.28 test/application/app/models/office.rb
directiverecord-0.1.27 test/application/app/models/office.rb
directiverecord-0.1.26 test/application/app/models/office.rb
directiverecord-0.1.25 test/application/app/models/office.rb
directiverecord-0.1.24 test/application/app/models/office.rb
directiverecord-0.1.23 test/application/app/models/office.rb
directiverecord-0.1.22 test/application/app/models/office.rb
directiverecord-0.1.21 test/application/app/models/office.rb
directiverecord-0.1.20 test/application/app/models/office.rb
directiverecord-0.1.19 test/application/app/models/office.rb
directiverecord-0.1.18 test/application/app/models/office.rb
directiverecord-0.1.17 test/application/app/models/office.rb
directiverecord-0.1.16 test/application/app/models/office.rb
directiverecord-0.1.15 test/application/app/models/office.rb
directiverecord-0.1.14 test/application/app/models/office.rb
directiverecord-0.1.13 test/application/app/models/office.rb