remove checking for non-empty string before calling to_sym
This commit is contained in:
parent
4d8ee28841
commit
77ed289609
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user