1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Remove duplicated to_s method call.

This commit is contained in:
Guo Xiang Tan 2014-05-25 19:07:57 -07:00
parent 6c30717f8c
commit 86396f8c30
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -226,7 +226,7 @@ module ActionController
# Returns a Rack endpoint for the given action name.
def self.action(name, klass = ActionDispatch::Request)
middleware_stack.build(name.to_s) do |env|
middleware_stack.build(name) do |env|
new.dispatch(name, klass.new(env))
end
end