lib/generators/ember/generator_helpers.rb in ember-appkit-rails-0.4.0 vs lib/generators/ember/generator_helpers.rb in ember-appkit-rails-0.5.0
- old
+ new
@@ -42,9 +42,13 @@
def class_name
(class_path + [file_name]).map!{ |m| m.camelize }.join()
end
+ def require_name
+ (class_path + [file_name]).map!{ |m| m.dasherize }.join('/')
+ end
+
def handlebars_template_path
File.join(class_path, file_name).gsub(/^\//, '')
end
def javascript_assets_path