Sha256: 788aa37b4d0367e71fd7b92e3e28d3f60bfd6b3814b75be02a9c639ddc0906a1

Contents?: true

Size: 191 Bytes

Versions: 84

Compression:

Stored size: 191 Bytes

Contents

class Island < ActiveRecord::Base
  self.table_name = 'isle'

  has_many :trees
  has_one :location
  has_one :eponymous_tree, ->(record) { where(name: record.name) }, class_name: 'Tree'
end

Version data entries

84 entries across 84 versions & 1 rubygems

Version Path
forest_liana-9.5.2 spec/dummy/app/models/island.rb
forest_liana-9.5.1 spec/dummy/app/models/island.rb
forest_liana-9.5.0 spec/dummy/app/models/island.rb
forest_liana-9.4.3 spec/dummy/app/models/island.rb
forest_liana-9.4.2 spec/dummy/app/models/island.rb
forest_liana-9.4.1 spec/dummy/app/models/island.rb
forest_liana-9.4.0 spec/dummy/app/models/island.rb
forest_liana-8.3.3 spec/dummy/app/models/island.rb
forest_liana-9.3.16 spec/dummy/app/models/island.rb
forest_liana-9.3.15 spec/dummy/app/models/island.rb
forest_liana-9.3.14 spec/dummy/app/models/island.rb
forest_liana-9.3.13 spec/dummy/app/models/island.rb
forest_liana-9.3.12 spec/dummy/app/models/island.rb
forest_liana-9.3.11 spec/dummy/app/models/island.rb
forest_liana-9.3.10 spec/dummy/app/models/island.rb
forest_liana-9.3.9 spec/dummy/app/models/island.rb
forest_liana-9.3.8 spec/dummy/app/models/island.rb
forest_liana-9.3.7 spec/dummy/app/models/island.rb
forest_liana-9.3.6 spec/dummy/app/models/island.rb
forest_liana-9.3.3 spec/dummy/app/models/island.rb