Sha256: 7c5a42e39481589fa468b5ecff15746372eb36837114e5ab081b9c0c8622b2e2

Contents?: true

Size: 343 Bytes

Versions: 93

Compression:

Stored size: 343 Bytes

Contents

class Tree < ActiveRecord::Base
  belongs_to :owner, class_name: 'User', inverse_of: :trees_owned
  belongs_to :cutter, class_name: 'User', inverse_of: :trees_cut
  belongs_to :island
  belongs_to :eponymous_island,
    ->(record) { where(name: record.name) },
    class_name: 'Island',
    inverse_of: :eponymous_tree,
    optional: true
end

Version data entries

93 entries across 93 versions & 1 rubygems

Version Path
forest_liana-9.1.8 spec/dummy/app/models/tree.rb
forest_liana-9.1.7 spec/dummy/app/models/tree.rb
forest_liana-9.1.6 spec/dummy/app/models/tree.rb
forest_liana-9.1.5 spec/dummy/app/models/tree.rb
forest_liana-9.1.4 spec/dummy/app/models/tree.rb
forest_liana-9.1.3 spec/dummy/app/models/tree.rb
forest_liana-9.1.2 spec/dummy/app/models/tree.rb
forest_liana-9.1.1 spec/dummy/app/models/tree.rb
forest_liana-9.1.0 spec/dummy/app/models/tree.rb
forest_liana-8.2.0 spec/dummy/app/models/tree.rb
forest_liana-9.0.0 spec/dummy/app/models/tree.rb
forest_liana-9.0.0.beta.1 spec/dummy/app/models/tree.rb
forest_liana-8.1.0 spec/dummy/app/models/tree.rb
forest_liana-8.0.17 spec/dummy/app/models/tree.rb
forest_liana-7.8.2 spec/dummy/app/models/tree.rb
forest_liana-8.0.16 spec/dummy/app/models/tree.rb
forest_liana-8.0.15 spec/dummy/app/models/tree.rb
forest_liana-8.0.14 spec/dummy/app/models/tree.rb
forest_liana-8.0.13 spec/dummy/app/models/tree.rb
forest_liana-8.0.12 spec/dummy/app/models/tree.rb