Sha256: f89a03048b347cbca5d5b24ec2ec5205a90378c2a29b39ed7d214a6b96beaa7e
Contents?: true
Size: 353 Bytes
Versions: 6
Compression:
Stored size: 353 Bytes
Contents
# Add support for type metadata to arrays class Array attr_accessor :member_class, :origin, :origin_attribute def to_url_path base_path = origin.try.to_url_path "#{base_path}/#{origin_attribute}" unless base_path.blank? end def typed_id origin and origin_id = origin.try.typed_id and "#{origin_id}:#{origin_attribute}" end end
Version data entries
6 entries across 6 versions & 1 rubygems