Sha256: ab384a606362457bb39b6f2ca8449af4b85b83f9e573623255a29a006fdf8c66
Contents?: true
Size: 443 Bytes
Versions: 3
Compression:
Stored size: 443 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.%s'" % [application_name.camelize, attribute[:name].camelize] else "DS.attr '%s'" % attribute[:type] end %> <% end -%>
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ember-rails-0.15.0 | lib/generators/templates/model.js.em |
ember-rails-0.14.1 | lib/generators/templates/model.js.em |
ember-rails-0.14.0 | lib/generators/templates/model.js.em |