remove checking for non-empty string before calling to_sym

This commit is contained in:
Vasiliy Ermolovich 2011-12-24 01:01:25 +03:00
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