class ViewModel::Controller::CompiledJson
Wrap raw JSON in such a way that MultiJSON knows to pass it through untouched. Requires a MultiJson adapter other than ActiveSupport's (modified) JsonGem.
Public Class Methods
new(s)
click to toggle source
# File lib/view_model/controller.rb, line 155 def initialize(s) @s = s end
Public Instance Methods
to_json(*_args)
click to toggle source
# File lib/view_model/controller.rb, line 159 def to_json(*_args) @s end
to_s()
click to toggle source
# File lib/view_model/controller.rb, line 163 def to_s @s end