Sha256: 21cd45a94c36336fdcaa15625736217a320e84caad1c18ff5cfb40ecec0f0687
Contents?: true
Size: 177 Bytes
Versions: 4
Compression:
Stored size: 177 Bytes
Contents
require 'og/relation/refers_to' module Og class BelongsTo < RefersTo def enchant super target_class.meta :descendants, [owner_class, foreign_key] end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
og-0.21.0 | lib/og/relation/belongs_to.rb |
og-0.21.2 | lib/og/relation/belongs_to.rb |
og-0.22.0 | lib/og/relation/belongs_to.rb |
og-0.23.0 | lib/og/relation/belongs_to.rb |