class Sequel::Plugins::JsonSerializer::Literal
Helper class used for making sure that cascading options for model associations works correctly. Cascaded options work by creating instances of this class, which take a literal JSON string and have to_json
return it.
Public Class Methods
new(json)
click to toggle source
Store the literal JSON to use
# File lib/sequel/plugins/json_serializer.rb 142 def initialize(json) 143 @json = json 144 end
Public Instance Methods
to_json(*a)
click to toggle source
Return the literal JSON to use
# File lib/sequel/plugins/json_serializer.rb 147 def to_json(*a) 148 @json 149 end