Sha256: 489c55354b133ec15979d1606bbe97d3f0f9e22bd3156301a1b999c4ed9f0a76

Contents?: true

Size: 212 Bytes

Versions: 13

Compression:

Stored size: 212 Bytes

Contents

module ActiveSupport
  module JSON
    # A string that returns itself as its JSON-encoded form.
    class Variable < String
      private
        def rails_to_json(*)
          self
        end
    end
  end
end

Version data entries

13 entries across 13 versions & 3 rubygems

Version Path
csd-0.1.5 lib/active_support/json/variable.rb
csd-0.1.4 lib/active_support/json/variable.rb
csd-0.1.3 lib/active_support/json/variable.rb
csd-0.1.2 lib/active_support/json/variable.rb
csd-0.1.1 lib/active_support/json/variable.rb
csd-0.1.0 lib/active_support/json/variable.rb
csd-0.0.16 lib/active_support/json/variable.rb
activesupport-3.0.0.beta4 lib/active_support/json/variable.rb
activesupport-3.0.0.beta3 lib/active_support/json/variable.rb
activesupport-3.0.0.beta2 lib/active_support/json/variable.rb
activesupport-3.0.0.beta lib/active_support/json/variable.rb
activesupport-3.0.pre lib/active_support/json/variable.rb
recliner-0.0.1 vendor/activesupport/lib/active_support/json/variable.rb