Sha256: e3bd922defeac7350bec8447edc0e5612b678fd453b679767e92c6b531794ed0
Contents?: true
Size: 419 Bytes
Versions: 29
Compression:
Stored size: 419 Bytes
Contents
# for more details see: http://emberjs.com/guides/models/defining-models/ class <%= application_name.camelize %>.<%= class_name %> extends DS.Model <% 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