Sha256: f0012ae8c8e3836b1c49276de1fd72f6a4bccddab4726c01dc484f3787fdcdd3
Contents?: true
Size: 613 Bytes
Versions: 12
Compression:
Stored size: 613 Bytes
Contents
module Transcriber class Resource module Builder module Relations def relation(name, options = {}) key Relation.new(name, options) end def has_one(name, options = {}) options.merge!(many: false, has: true) relation(name, options) end def has_many(name, options = {}) options.merge!(many: true, has: true) relation(name, options) end def belongs_to(name, options = {}) options.merge!(many: false, has: false) relation(name, options) end end end end end
Version data entries
12 entries across 12 versions & 1 rubygems