Sha256: dda0601809a2c1095fcb5bce53c08a5a58e1dd2b3e652f75203472edda5f9fe8
Contents?: true
Size: 451 Bytes
Versions: 29
Compression:
Stored size: 451 Bytes
Contents
# for more details see: http://emberjs.com/guides/models/defining-models/ <%= application_name.camelize %>.<%= class_name %> = DS.Model.extend<%= "()" if attributes.length == 0 %> <% attributes.each do |attribute| -%> <%= attribute[:name].camelize(:lower) %>: <%= if %w(references belongs_to).member?(attribute[:type]) "DS.belongsTo '%s'" % attribute[:name].camelize(:lower) else "DS.attr '%s'" % attribute[:type] end %> <% end -%>
Version data entries
29 entries across 29 versions & 4 rubygems