class Array
Public Instance Methods
symbolize_keys()
click to toggle source
# File lib/util.rb, line 27 def symbolize_keys collect do |entry| if entry.class == Hash entry.symbolize_keys else entry end end end
to_query(key)
click to toggle source
# File lib/util.rb, line 22 def to_query(key) prefix = "#{key}[]" collect { |value| value.to_query(prefix) }.join '&' end