lib/generators/ember/view_generator.rb in ember-appkit-rails-0.1.2 vs lib/generators/ember/view_generator.rb in ember-appkit-rails-0.2.0

- old
+ new

@@ -6,18 +6,15 @@ include Ember::Generators::GeneratorHelpers source_root File.expand_path("../../templates", __FILE__) desc "Creates a new Ember.js view and associated template." - class_option :ember_path, :type => :string, :aliases => "-d", :default => false, :desc => "Custom ember app path" class_option :without_template, :type => :boolean, :default => false, :desc => "Create template for this view" def create_view_files - file_path = File.join(ember_path, 'views', class_path, "#{file_name}.js.es6") + file_path = File.join(app_path, 'views', class_path, "#{file_name}.js.es6") template "view.js.es6", file_path invoke('ember:template', [ name ], options) unless options[:without_template] end end end end - -