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