GitLab steht aufgrund wichtiger Wartungsarbeiten am Montag, den 8. März, zwischen 17:00 und 19:00 Uhr nicht zur Verfügung.

Commit f0403f56 authored by tmaruyama's avatar tmaruyama

remove trailing white-spaces from...

remove trailing white-spaces from lib/generators/redmine_plugin_model/redmine_plugin_model_generator.rb

git-svn-id: e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 6fd8d7d7
......@@ -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)
def destination_root
File.join(Rails.root, plugin_path)
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")
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment