Class: Angular::Generators::ControllerGenerator

Inherits:
Rails::Generators::NamedBase
  • Object
show all
Includes:
ResourceHelpers
Defined in:
lib/generators/angular/controller/controller_generator.rb

Instance Method Summary collapse

Methods included from ResourceHelpers

#angular_path, #angular_spec_path, #angular_templates_path, #application_name, #assets_path

Instance Method Details

#create_backbone_modelObject



11
12
13
# File 'lib/generators/angular/controller/controller_generator.rb', line 11

def create_backbone_model
  template "controller.coffee", "#{angular_path}/controllers/#{file_name.pluralize}.coffee"
end