ember-rails 0.14.0 → 0.18.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +141 -102
  3. data/lib/ember/rails/engine.rb +8 -5
  4. data/lib/ember/rails/version.rb +1 -1
  5. data/lib/ember_rails.rb +36 -16
  6. data/lib/generators/ember/adapter_generator.rb +21 -0
  7. data/lib/generators/ember/bootstrap_generator.rb +6 -3
  8. data/lib/generators/ember/component_generator.rb +2 -2
  9. data/lib/generators/ember/generator_helpers.rb +7 -5
  10. data/lib/generators/ember/install_generator.rb +64 -32
  11. data/lib/generators/ember/resource_override.rb +8 -2
  12. data/lib/generators/ember/template_generator.rb +2 -2
  13. data/lib/generators/templates/adapter.js +5 -0
  14. data/lib/generators/templates/adapter.js.coffee +5 -0
  15. data/lib/generators/templates/adapter.js.em +3 -0
  16. data/lib/generators/templates/app.js +2 -2
  17. data/lib/generators/templates/app.js.coffee +2 -1
  18. data/lib/generators/templates/app.js.em +3 -1
  19. data/lib/generators/templates/{application.handlebars → application.hbs} +0 -0
  20. data/lib/generators/templates/application.js +3 -2
  21. data/lib/generators/templates/application.js.coffee +3 -1
  22. data/lib/generators/templates/application.js.em +3 -1
  23. data/lib/generators/templates/application_adapter.js +5 -0
  24. data/lib/generators/templates/application_adapter.js.coffee +5 -0
  25. data/lib/generators/templates/application_adapter.js.em +3 -0
  26. data/lib/generators/templates/array_controller.js +1 -1
  27. data/lib/generators/templates/{component.template.handlebars → component.template.hbs} +0 -0
  28. data/lib/generators/templates/model.js +1 -1
  29. data/lib/generators/templates/model.js.coffee +1 -1
  30. data/lib/generators/templates/model.js.em +1 -1
  31. data/lib/generators/templates/{template.handlebars → template.hbs} +0 -0
  32. metadata +77 -103
  33. data/lib/ember/handlebars/template.rb +0 -113
  34. data/lib/generators/templates/store.js +0 -7
  35. data/lib/generators/templates/store.js.coffee +0 -6
  36. data/lib/generators/templates/store.js.em +0 -7
@@ -1,7 +0,0 @@
1
- // http://emberjs.com/guides/models/using-the-store/
2
-
3
- <%= application_name.camelize %>.Store = DS.Store.extend({
4
- // Override the default adapter with the `DS.ActiveModelAdapter` which
5
- // is built to work nicely with the ActiveModel::Serializers gem.
6
- adapter: '_ams'
7
- });
@@ -1,6 +0,0 @@
1
- # http://emberjs.com/guides/models/using-the-store/
2
-
3
- <%= application_name.camelize %>.Store = DS.Store.extend
4
- # Override the default adapter with the `DS.ActiveModelAdapter` which
5
- # is built to work nicely with the ActiveModel::Serializers gem.
6
- adapter: '_ams'
@@ -1,7 +0,0 @@
1
- # http://emberjs.com/guides/models/using-the-store/
2
-
3
- class <%= application_name.camelize %>.Store extends DS.Store
4
- # Override the default adapter with the `DS.ActiveModelAdapter` which
5
- # is built to work nicely with the ActiveModel::Serializers gem.
6
- adapter: '_ams'
7
-