module Outpost::Aggregator::JsonInput
Public Instance Methods
simple_json()
click to toggle source
The default simple JSON for all objects. This catches one-to-one and many-to-one associations. It should be overridden for many-to-many associations.
# File lib/outpost/aggregator/json_input.rb, line 9 def simple_json @simple_json ||= { "id" => self.respond_to?(:obj_key) ? self.obj_key : self.id } end