aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/json/encoders/enumerable.rb
blob: d180049663661d136dcafbb2082a6272825e8a0f (plain) (blame)
1
2
3
4
5
module Enumerable
  def to_json(options = {}) #:nodoc:
    "[#{map { |value| ActiveSupport::JSON.encode(value, options) } * ', '}]"
  end
end