Improve resource generation #112

Closed
wycats opened this Issue Jan 8, 2013 · 2 comments

Comments

Projects
None yet
3 participants
Owner

wycats commented Jan 8, 2013

Many of the generators are still encoding older router semantics which are now outdated. Specifically:

  1. It currently generates multiple templates for singular routes
  2. It generates view objects that are no longer necessary
  3. When using the reference type when generating a resource (e.g., rails g resource comment post:reference), the generated DS.Model should use DS.belongsTo
  4. Serializers should not generate belongs_to
  5. Generated models should extract attr, hasMany and belongsTo in a local variable at the top of the file, so that the generated code can say something like: post: belongsTo('App.Post') instead of post: DS.belongsTo('App.Post')
  6. Investigate why newly created serializers are not inheriting from ApplicationSerializer (this may have been our fault, but we should never default to inheriting from AM::Serializer)

Has this work been completed?

Member

fivetanley commented Dec 21, 2013

I think many of these have been completed. Reopen and ping me if they haven't.

@fivetanley fivetanley closed this Dec 21, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment