lib/generators/templates/model.js.em in ember-rails-0.15.0 vs lib/generators/templates/model.js.em in ember-rails-0.15.1
- old
+ new
@@ -2,10 +2,10 @@
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]
+ "DS.belongsTo '%s'" % attribute[:name].camelize(:lower)
else
"DS.attr '%s'" % attribute[:type]
end
%>
<% end -%>