Sha256: 0c2cfdb355ba44923c5e75817782f98660df4f1e3db602920a3ebce9e14aa2be

Contents?: true

Size: 723 Bytes

Versions: 4

Compression:

Stored size: 723 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

      def create_angular_controller_spec
        template "controller_spec.coffee", "#{angular_spec_path}/controllers/#{file_name}_controller_spec.coffee"
      end

      
    end

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
angular_velocity-1.0.0 lib/generators/angular_velocity/controller/controller_generator.rb
angular_velocity-0.0.6alpha lib/generators/angular_velocity/controller/controller_generator.rb
angular_velocity-0.0.5alpha lib/generators/angular_velocity/controller/controller_generator.rb
angular_velocity-0.0.4alpha lib/generators/angular_velocity/controller/controller_generator.rb