Sha256: ef857517ea6be6a6732305e8e5dc5a8078193de4fb202d35f719681087a3c273

Contents?: true

Size: 557 Bytes

Versions: 2

Compression:

Stored size: 557 Bytes

Contents

require 'generators/angular_velocity/angular_config'

#Rails.root.join('public','images','logo.png')

module AngularVelocity
  module Generators

    class ControllerGenerator < Rails::Generators::NamedBase
      include AngularVelocity::Generators::AngularConfig
      source_root File.expand_path('../templates', __FILE__)
      desc "This generator creates an angular controller"

      def create_angular_controller
        template "controller.coffee", "#{angular_path}/controllers/#{file_name}_controller.coffee"
      end

      
    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
angular_velocity-0.0.3alpha lib/generators/angular_velocity/controller/controller_generator.rb
angular_velocity-0.0.2alpha lib/generators/angular_velocity/controller/controller_generator.rb