Class: Iord::Generators::ScaffoldGenerator

Inherits:
Rails::Generators::NamedBase
  • Object
show all
Includes:
Rails::Generators::ResourceHelpers
Defined in:
lib/rails/generators/iord/scaffold/scaffold_generator.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.source_rootObject



8
9
10
# File 'lib/rails/generators/iord/scaffold/scaffold_generator.rb', line 8

def self.source_root
  @_iord_source_root ||= File.expand_path("../templates", __FILE__)
end

Instance Method Details

#create_controller_filesObject



20
21
22
# File 'lib/rails/generators/iord/scaffold/scaffold_generator.rb', line 20

def create_controller_files
  template 'controller.rb', File.join('app/controllers', controller_class_path, "#{controller_file_name}_controller.rb")
end