aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/abstract_controller/base.rb
diff options
context:
space:
mode:
authorYves Senn <yves.senn@gmail.com>2014-05-26 09:10:00 +0200
committerYves Senn <yves.senn@gmail.com>2014-05-26 09:10:00 +0200
commit2ae6e110033416cc542404d81e30523b954c6daa (patch)
tree423e3d8267b6de59c7cb66e8ec5b2580304c9bf7 /actionpack/lib/abstract_controller/base.rb
parent42fe94891720e081149744cb8ae1e63747f1ff38 (diff)
parent86396f8c300c21bf72234de53c3c33c63e4ed9ce (diff)
downloadrails-2ae6e110033416cc542404d81e30523b954c6daa.tar.gz
rails-2ae6e110033416cc542404d81e30523b954c6daa.tar.bz2
rails-2ae6e110033416cc542404d81e30523b954c6daa.zip
Merge pull request #15325 from tgxworld/no_need_to_call_to_s
Remove duplicated to_s method call.
Diffstat (limited to 'actionpack/lib/abstract_controller/base.rb')
-rw-r--r--actionpack/lib/abstract_controller/base.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/abstract_controller/base.rb b/actionpack/lib/abstract_controller/base.rb
index c00f0d0c6f..acdfb33efa 100644
--- a/actionpack/lib/abstract_controller/base.rb
+++ b/actionpack/lib/abstract_controller/base.rb
@@ -255,7 +255,7 @@ module AbstractController
# Checks if the action name is valid and returns false otherwise.
def _valid_action_name?(action_name)
- action_name.to_s !~ Regexp.new(File::SEPARATOR)
+ action_name !~ Regexp.new(File::SEPARATOR)
end
end
end