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:
parent
6c30717f8c
commit
86396f8c30
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue