Sha256: d8387430e5659d5ab6baab6e8d554f5edcaf796bb6e867c4f17fdf6eda5be5d5

Contents?: true

Size: 420 Bytes

Versions: 3

Compression:

Stored size: 420 Bytes

Contents

require 'ember/version'

module Ember
  module Generators
    class RouteGenerator < ::Rails::Generators::NamedBase
      source_root File.expand_path("../../templates", __FILE__)

      desc "Creates a new Ember.js route"

      def create_route_files
        file_path = File.join('app/assets/javascripts/routes', class_path, "#{file_name}_route.js")
        template 'route.js', file_path
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
ember-rails-0.10.0 lib/generators/ember/route_generator.rb
ember-rails-lite-0.9.2 lib/generators/ember/route_generator.rb
ember-rails-0.9.2 lib/generators/ember/route_generator.rb