aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/generators/actions.rb
diff options
context:
space:
mode:
authorAkira Matsuda <ronnie@dio.jp>2016-12-23 19:20:01 +0900
committerAkira Matsuda <ronnie@dio.jp>2016-12-25 02:11:40 +0900
commitd1daf4c31301f5f5917b877fd63a817f5f4608ed (patch)
treef05de4a1df65a5bece5463590e3cd846cc57432a /railties/lib/rails/generators/actions.rb
parent6b049057f0e7b21235ee88900d56f99ac527eecf (diff)
downloadrails-d1daf4c31301f5f5917b877fd63a817f5f4608ed.tar.gz
rails-d1daf4c31301f5f5917b877fd63a817f5f4608ed.tar.bz2
rails-d1daf4c31301f5f5917b877fd63a817f5f4608ed.zip
Privatize unneededly protected methods in Railties
Diffstat (limited to 'railties/lib/rails/generators/actions.rb')
-rw-r--r--railties/lib/rails/generators/actions.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/railties/lib/rails/generators/actions.rb b/railties/lib/rails/generators/actions.rb
index 8a60560f86..d058d82cea 100644
--- a/railties/lib/rails/generators/actions.rb
+++ b/railties/lib/rails/generators/actions.rb
@@ -260,12 +260,12 @@ module Rails
@after_bundle_callbacks << block
end
- protected
+ private
# Define log for backwards compatibility. If just one argument is sent,
# invoke say, otherwise invoke say_status. Differently from say and
# similarly to say_status, this method respects the quiet? option given.
- def log(*args)
+ def log(*args) # :doc:
if args.size == 1
say args.first.to_s unless options.quiet?
else
@@ -276,7 +276,7 @@ module Rails
# Runs the supplied command using either "rake ..." or "rails ..."
# based on the executor parameter provided.
- def execute_command(executor, command, options = {})
+ def execute_command(executor, command, options = {}) # :doc:
log executor, command
env = options[:env] || ENV["RAILS_ENV"] || "development"
sudo = options[:sudo] && !Gem.win_platform? ? "sudo " : ""
@@ -284,7 +284,7 @@ module Rails
end
# Add an extension to the given name based on the platform.
- def extify(name)
+ def extify(name) # :doc:
if Gem.win_platform?
"#{name}.bat"
else
@@ -294,7 +294,7 @@ module Rails
# Surround string with single quotes if there is no quotes.
# Otherwise fall back to double quotes
- def quote(value)
+ def quote(value) # :doc:
return value.inspect unless value.is_a? String
if value.include?("'")