~michaelforrest/use-case-mapper/trunk

« back to all changes in this revision

Viewing changes to vendor/rails/activesupport/lib/active_support/json/encoders/nil_class.rb

  • Committer: Richard Lee (Canonical)
  • Date: 2010-10-15 15:17:58 UTC
  • mfrom: (190.1.3 use-case-mapper)
  • Revision ID: richard.lee@canonical.com-20101015151758-wcvmfxrexsongf9d
Merge

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
class NilClass
2
 
  AS_JSON = ActiveSupport::JSON::Variable.new('null').freeze
3
 
 
4
 
  def as_json(options = nil) #:nodoc:
5
 
    AS_JSON
6
 
  end
7
 
end