Skip to content

Instantly share code, notes, and snippets.

View dustym's full-sized avatar
🏈

Dusty Matthews dustym

🏈
View GitHub Profile
class Array
def to_json(options = {}, &block) #:nodoc:
"[#{map { |value| ActiveSupport::JSON.encode(value, options, &block) } * ', '}]"
end
end
module ActiveSupport
module JSON