1. Allan Davis
  2. RubyLearning

Source

RubyLearning / ProjectTrak / vendor / rails / activesupport / lib / active_support / json / encoders / nil_class.rb

1
2
3
4
5
class NilClass
  def to_json(options = nil) #:nodoc:
    'null'
  end
end