Module: Redmine::Generators::PluginNameAttribute
- Extended by:
- ActiveSupport::Concern
- Included in:
- ProjectMenuGenerator, ProjectModuleGenerator, ResourceRouteGenerator, ScaffoldControllerGenerator, ScaffoldGenerator, TranslationGenerator
- Defined in:
- lib/redmine/generators/plugin_name_attribute.rb
Instance Method Summary collapse
Instance Method Details
#initialize(args = [], options = {}, config = {}) ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/redmine/generators/plugin_name_attribute.rb', line 8 def initialize(args = [], = {}, config = {}) self.plugin_name = args.shift unless plugin_name plugin_destination = plugin_destination_root raise "Invalid plugin name #{plugin_name}" if bail_on_missing? && !plugin_destination super self.destination_root = plugin_destination end |