Sha256: fa8d0e76f7779d0f75b4cf6fdf2a57f9f3b8bcaaecd7ef7f2c980741b5009652
Contents?: true
Size: 394 Bytes
Versions: 4
Compression:
Stored size: 394 Bytes
Contents
require_relative 'entity_node' module Spectifly module Base class Association < EntityNode attr_reader :relationship def initialize(field_name, options = {}) super @relationship = options.delete(:relationship) end def multiple? ['has_many', 'has_many_and_belongs_to', 'belongs_to_many'].include? relationship end end end end
Version data entries
4 entries across 4 versions & 1 rubygems