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

appname() click to toggle source
# File lib/roqua/support.rb, line 10
def appname
  @appname
end
appname=(name) click to toggle source
# File lib/roqua/support.rb, line 14
def appname=(name)
  @appname = name
end
logger() click to toggle source
# File lib/roqua/support.rb, line 18
def logger
  @logger || raise('Roqua.logger not yet initialized')
end
logger=(logger) click to toggle source
# File lib/roqua/support.rb, line 22
def logger=(logger)
  @logger = LogWrapper.new(logger)
end
stats() click to toggle source
# File lib/roqua/support.rb, line 26
def stats
  @stats ||= ::Roqua::Support::Stats.new
end
stats=(stats) click to toggle source
# File lib/roqua/support.rb, line 30
def stats=(stats)
  @stats = stats
end