module Roqua
For json and xml, will render the result of an active_interaction operation if no errors where present. Otherwise renders the interaction
Scopes json errors to the object-class:
@example
{errors: {person: name: ['blank']}}
Does not play well with others, replaces json_resource_errors; when including multiple responders, ordering matters.
Strips whitespace and make nil when string becomes empty.
Constants
- Logging
-
Roqua::Logging
is deprecated, this will keep it alive for now
Public Class Methods
Source
# File lib/roqua/support.rb, line 18 def logger @logger || raise('Roqua.logger not yet initialized') end
Source
# File lib/roqua/support.rb, line 22 def logger=(logger) @logger = LogWrapper.new(logger) end
Source
# File lib/roqua/support.rb, line 26 def stats @stats ||= ::Roqua::Support::Stats.new end