module AssociateJsonb::AttributeMethods::Read

Public Instance Methods

_fetch_attribute(attr_name, &block) click to toggle source
# File lib/associate_jsonb/attribute_methods/read.rb, line 9
def _fetch_attribute(attr_name, &block) # :nodoc
  sync_with_transaction_state if @transaction_state&.finalized?
  @attributes.fetch(attr_name.to_s, &block)
end