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