Sha256: 20d57d2f1f445fb965aaae151771b545cf95dac9b1ea5d58431e2958618365d1
Contents?: true
Size: 515 Bytes
Versions: 4
Compression:
Stored size: 515 Bytes
Contents
require 'syncano/active_record/association/base' class Syncano module ActiveRecord module Association # Class for has one association class HasOne < Syncano::ActiveRecord::Association::Base attr_reader :associated_model, :foreign_key, :source_model # Checks if association is has_one type # @return [TrueClass] def has_one? true end private attr_writer :associated_model, :foreign_key, :source_model end end end end
Version data entries
4 entries across 4 versions & 1 rubygems