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.7.0 spec/dummy/app/models/tree.rb
forest_liana-9.6.4 spec/dummy/app/models/tree.rb
forest_liana-9.6.3 spec/dummy/app/models/tree.rb
forest_liana-9.6.0 spec/dummy/app/models/tree.rb
forest_liana-9.5.7 spec/dummy/app/models/tree.rb
forest_liana-9.5.6 spec/dummy/app/models/tree.rb
forest_liana-9.5.5 spec/dummy/app/models/tree.rb
forest_liana-9.5.4 spec/dummy/app/models/tree.rb
forest_liana-9.5.3 spec/dummy/app/models/tree.rb
forest_liana-9.5.2 spec/dummy/app/models/tree.rb
forest_liana-9.5.1 spec/dummy/app/models/tree.rb
forest_liana-9.5.0 spec/dummy/app/models/tree.rb
forest_liana-9.4.3 spec/dummy/app/models/tree.rb
forest_liana-9.4.2 spec/dummy/app/models/tree.rb
forest_liana-9.4.1 spec/dummy/app/models/tree.rb
forest_liana-9.4.0 spec/dummy/app/models/tree.rb
forest_liana-8.3.3 spec/dummy/app/models/tree.rb
forest_liana-9.3.16 spec/dummy/app/models/tree.rb
forest_liana-9.3.15 spec/dummy/app/models/tree.rb
forest_liana-9.3.14 spec/dummy/app/models/tree.rb