lib/govdelivery/tms/instance_resource.rb
def readonly_collection_attribute(attr, tms_class)
      @readonly_collection_attributes ||= []
      @readonly_collection_attributes.push(attr).uniq!
      setup_collection(attr, GovDelivery::TMS.const_get(tms_class))
    end
##
# Read-only collection attributes don't get POSTed.
# Use this for collections that are represented as attributes, but cannot be modified.
#
# @example
#      readonly_collection_attribute :opens
#
Read-only collection attributes don't get POSTed.
Use this for collections that are represented as attributes, but cannot be modified.
Read - only collection attributes don ' t get POSTed . Use this for collections that are represented as attributes but cannot be modified .
def readonly_collection_attribute(attr, tms_class)
      @readonly_collection_attributes ||= []
      @readonly_collection_attributes.push(attr).uniq!
      setup_collection(attr, GovDelivery::TMS.const_get(tms_class))
    end
def readonly_collection_attribute ( attr , tms_class ) @readonly_collection_attributes ||= [ ] @readonly_collection_attributes . push ( attr ) . uniq! setup_collection ( attr , GovDelivery :: TMS . const_get ( tms_class ) ) end
Read-only collection attributes don't get POSTed.
Read - only collection attributes don ' t get POSTed .
attr
tms_class
example
None