diff options
Diffstat (limited to 'railties/lib/rails/commands/plugin.rb')
-rw-r--r-- | railties/lib/rails/commands/plugin.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/railties/lib/rails/commands/plugin.rb b/railties/lib/rails/commands/plugin.rb index 52d8966ead..6404748fca 100644 --- a/railties/lib/rails/commands/plugin.rb +++ b/railties/lib/rails/commands/plugin.rb @@ -5,9 +5,9 @@ else unless ARGV.delete("--no-rc") customrc = ARGV.index{ |x| x.include?("--rc=") } railsrc = if customrc - File.expand_path(ARGV.delete_at(customrc).gsub(/--rc=/, "")) + File.expand_path(ARGV.delete_at(customrc).gsub(/--rc=/, "")) else - File.join(File.expand_path("~"), '.railsrc') + File.join(File.expand_path("~"), ".railsrc") end if File.exist?(railsrc) extra_args_string = File.read(railsrc) @@ -18,6 +18,6 @@ else end end -require 'rails/generators' -require 'rails/generators/rails/plugin/plugin_generator' +require "rails/generators" +require "rails/generators/rails/plugin/plugin_generator" Rails::Generators::PluginGenerator.start |