Sha256: 4a6438953efaf32c741f0bd5f5b42c8378419d43d959a53d1d7d4274eca9edcc
Contents?: true
Size: 336 Bytes
Versions: 13
Compression:
Stored size: 336 Bytes
Contents
# frozen_string_literal: true module ActiveResource::Associations::Builder class HasOne < Association self.macro = :has_one def build validate_options model.create_reflection(self.class.macro, name, options).tap do |reflection| model.defines_has_one_finder_method(reflection) end end end end
Version data entries
13 entries across 13 versions & 2 rubygems