Sha256: 5e7e276551ef05c414a27d395fb3c94b7485ce897ab14c02c0ede8504cc7fac0
Contents?: true
Size: 495 Bytes
Versions: 3
Compression:
Stored size: 495 Bytes
Contents
require 'syncano/model/associations/base' module Syncano module Model module Association # Class for has one association class HasOne < Syncano::Model::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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
syncano-4.0.0.alpha1 | lib/syncano/model/associations/has_one.rb |
syncano-4.0.0.alpha | lib/syncano/model/associations/has_one.rb |
syncano-4.0.0.pre | lib/syncano/model/associations/has_one.rb |