aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/abstract_controller
diff options
context:
space:
mode:
authorGuo Xiang Tan <tgx_world@hotmail.com>2014-05-25 19:07:57 -0700
committerGuo Xiang Tan <tgx_world@hotmail.com>2014-05-25 19:07:57 -0700
commit86396f8c300c21bf72234de53c3c33c63e4ed9ce (patch)
tree78bc9aed68e8ebf373c7950be0668b032510d71f /actionpack/lib/abstract_controller
parent6c30717f8c182dc05f63779b3a9a532fb9076b05 (diff)
downloadrails-86396f8c300c21bf72234de53c3c33c63e4ed9ce.tar.gz
rails-86396f8c300c21bf72234de53c3c33c63e4ed9ce.tar.bz2
rails-86396f8c300c21bf72234de53c3c33c63e4ed9ce.zip
Remove duplicated to_s method call.
Diffstat (limited to 'actionpack/lib/abstract_controller')
-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