Sha256: 5500d1514ad24463b2bddabb330f2f7c787d40770fdbbccf024df52032966e26

Contents?: true

Size: 170 Bytes

Versions: 5

Compression:

Stored size: 170 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

5 entries across 5 versions & 1 rubygems

Version Path
og-0.17.0 lib/og/relation/belongs_to.rb
og-0.18.1 lib/og/relation/belongs_to.rb
og-0.20.0 lib/og/relation/belongs_to.rb
og-0.18.0 lib/og/relation/belongs_to.rb
og-0.19.0 lib/og/relation/belongs_to.rb