Default parent Mongoid error for all custom errors. This handles the base key for the translations and provides the convenience method for translating the messages.
Compose the message.
@example Create the message
error.compose_message
@return [ String ] The composed message.
@since 3.0.0
# File lib/mongoid/errors/mongoid_error.rb, line 19 def compose_message(key, attributes) @problem = problem(key, attributes) @summary = summary(key, attributes) @resolution = resolution(key, attributes) "\nProblem:\n #{@problem}"+ "\nSummary:\n #{@summary}"+ "\nResolution:\n #{@resolution}" end