Sha256: b306dab70c1c025fd1db26511b15460628fa78a962125d6d275050a1df075998
Contents?: true
Size: 682 Bytes
Versions: 2
Compression:
Stored size: 682 Bytes
Contents
module Ember module Generators module GeneratorHelpers def ember_path options[:ember_path] || "app/assets/javascripts" end def application_name if defined?(::Rails) && ::Rails.application ::Rails.application.class.name.split('::').first 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
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
ember-rails-lite-0.12.0 | lib/generators/ember/generator_helpers.rb |
ember-rails-0.12.0 | lib/generators/ember/generator_helpers.rb |