Class: Iord::Generators::ScaffoldGenerator
- Inherits:
-
Rails::Generators::NamedBase
- Object
- Rails::Generators::NamedBase
- Iord::Generators::ScaffoldGenerator
- 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_root ⇒ Object
8 9 10 |
# File 'lib/rails/generators/iord/scaffold/scaffold_generator.rb', line 8 def self.source_root @_iord_source_root ||= File.("../templates", __FILE__) end |
Instance Method Details
#create_controller_files ⇒ Object
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 |