module ActionController::Serialization

def _render_option_json(resource, options)

def _render_option_json(resource, options)
  json = ActiveModel::Serializer.build_json(self, resource, options)
  if json
    super(json, options)
  else
    super
  end
end

def default_serializer_options

def default_serializer_options
end

def serialization_scope

def serialization_scope
  send(_serialization_scope) if _serialization_scope && respond_to?(_serialization_scope, true)
end