summaryrefslogtreecommitdiffstats
path: root/lib/generators
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2012-04-01 12:42:09 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2012-04-01 12:42:09 +0000
commit3b6be9ca4ee494d72971d7560854d67aa430d095 (patch)
tree01488d185bcd01c3458a2b40585e000613e56d85 /lib/generators
parentfc717411018f275403807b398b7482513a259d16 (diff)
downloadredmine-3b6be9ca4ee494d72971d7560854d67aa430d095.tar.gz
redmine-3b6be9ca4ee494d72971d7560854d67aa430d095.zip
remove trailing white-spaces from lib/generators/redmine_plugin_model/redmine_plugin_model_generator.rb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9297 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/generators')
-rw-r--r--lib/generators/redmine_plugin_model/redmine_plugin_model_generator.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/generators/redmine_plugin_model/redmine_plugin_model_generator.rb b/lib/generators/redmine_plugin_model/redmine_plugin_model_generator.rb
index be231a91c..07aff1fb7 100644
--- a/lib/generators/redmine_plugin_model/redmine_plugin_model_generator.rb
+++ b/lib/generators/redmine_plugin_model/redmine_plugin_model_generator.rb
@@ -3,7 +3,7 @@ require 'rails_generator/generators/components/model/model_generator'
class RedminePluginModelGenerator < ModelGenerator
attr_accessor :plugin_path, :plugin_name, :plugin_pretty_name
-
+
def initialize(runtime_args, runtime_options = {})
runtime_args = runtime_args.dup
usage if runtime_args.empty?
@@ -12,11 +12,11 @@ class RedminePluginModelGenerator < ModelGenerator
@plugin_path = "vendor/plugins/#{plugin_name}"
super(runtime_args, runtime_options)
end
-
+
def destination_root
File.join(Rails.root, plugin_path)
end
-
+
def manifest
record do |m|
# Check for class naming collisions.
@@ -31,7 +31,7 @@ class RedminePluginModelGenerator < ModelGenerator
m.template 'model.rb.erb', File.join('app/models', class_path, "#{file_name}.rb")
m.template 'unit_test.rb.erb', File.join('test/unit', class_path, "#{file_name}_test.rb")
- unless options[:skip_fixture]
+ unless options[:skip_fixture]
m.template 'fixtures.yml', File.join('test/fixtures', "#{table_name}.yml")
end