Sha256: bf3e7754199da798bcc5bda3a23508ad761d732379be23bb2bfb33d8bac5c363
Contents?: true
Size: 332 Bytes
Versions: 5
Compression:
Stored size: 332 Bytes
Contents
# encoding: utf-8 # frozen_string_literal: true module Traits class Association module ReadOnly def mutable? !through? || source_association.macro == :belongs_to end def readonly? not mutable? end def to_hash super.merge!(mutable: mutable?) end end end end
Version data entries
5 entries across 5 versions & 1 rubygems