提交 9bbe2b80 编写于 作者: J Jeremy Kemper

Merge pull request #4156 from nashby/to-sym-ruby-18

remove checking for non-empty string before calling to_sym
......@@ -1432,8 +1432,7 @@ def path_for_action(action, path) #:nodoc:
end
def action_path(name, path = nil) #:nodoc:
# Ruby 1.8 can't transform empty strings to symbols
name = name.to_sym if name.is_a?(String) && !name.empty?
name = name.to_sym if name.is_a?(String)
path || @scope[:path_names][name] || name.to_s
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册