remove trailing white-spaces from lib/generators/redmine_plugin_controller/redmine_plugin_controller_generator.rb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9296 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
3847223841
commit
fc71741101
|
@ -3,7 +3,7 @@ require 'rails_generator/generators/components/controller/controller_generator'
|
||||||
|
|
||||||
class RedminePluginControllerGenerator < ControllerGenerator
|
class RedminePluginControllerGenerator < ControllerGenerator
|
||||||
attr_reader :plugin_path, :plugin_name, :plugin_pretty_name
|
attr_reader :plugin_path, :plugin_name, :plugin_pretty_name
|
||||||
|
|
||||||
def initialize(runtime_args, runtime_options = {})
|
def initialize(runtime_args, runtime_options = {})
|
||||||
runtime_args = runtime_args.dup
|
runtime_args = runtime_args.dup
|
||||||
usage if runtime_args.empty?
|
usage if runtime_args.empty?
|
||||||
|
@ -12,11 +12,11 @@ class RedminePluginControllerGenerator < ControllerGenerator
|
||||||
@plugin_path = "vendor/plugins/#{plugin_name}"
|
@plugin_path = "vendor/plugins/#{plugin_name}"
|
||||||
super(runtime_args, runtime_options)
|
super(runtime_args, runtime_options)
|
||||||
end
|
end
|
||||||
|
|
||||||
def destination_root
|
def destination_root
|
||||||
File.join(Rails.root, plugin_path)
|
File.join(Rails.root, plugin_path)
|
||||||
end
|
end
|
||||||
|
|
||||||
def manifest
|
def manifest
|
||||||
record do |m|
|
record do |m|
|
||||||
# Check for class naming collisions.
|
# Check for class naming collisions.
|
||||||
|
|
Loading…
Reference in New Issue