Class: Redmine::Generators::ScaffoldControllerGenerator

Inherits:
Rails::Generators::ScaffoldControllerGenerator
  • Object
show all
Includes:
PluginNameAttribute
Defined in:
lib/redmine/generators/scaffold_controller_generator.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ ScaffoldControllerGenerator

Returns a new instance of ScaffoldControllerGenerator.



21
22
23
24
25
# File 'lib/redmine/generators/scaffold_controller_generator.rb', line 21

def initialize(*args)
  super
  Erb::Generators::ScaffoldGenerator.send :include, SortableHeaders
  Erb::Generators::ScaffoldGenerator.send :include, RemoteableLinks
end

Class Method Details

.base_nameObject



27
28
29
# File 'lib/redmine/generators/scaffold_controller_generator.rb', line 27

def self.base_name
  "rails"
end