lib/generators/ember/generator_helpers.rb in ember-rails-lite-0.11.1 vs lib/generators/ember/generator_helpers.rb in ember-rails-lite-0.12.0
- old
+ new
@@ -12,8 +12,20 @@
else
"app"
end
end
+
+ def class_name
+ (class_path + [file_name]).map!{ |m| m.camelize }.join()
+ end
+
+ def handlebars_template_path
+ File.join(class_path, file_name).gsub(/^\//, '')
+ end
+
+ def engine_extension
+ @engine_extension ||= "js.#{options[:javascript_engine]}".sub('js.js','js')
+ end
end
end
end