Sha256: db039abdfc627f78c990062007795a6ac4e300b098b9c558a8b1af25e6484f36
Contents?: true
Size: 358 Bytes
Versions: 11
Compression:
Stored size: 358 Bytes
Contents
# Concern module AttributesConverter def initialize(data = {}) if data['attributes'] if data['attributes'].is_a? Array data['attrs'] = data.delete 'attributes' elsif data['attributes'].is_a? Hash # do nothing else raise "Strange attribute class #{data['attribute']}" end end super data end end
Version data entries
11 entries across 11 versions & 1 rubygems