module Roda::RodaPlugins::ErrorEmail
def self.configure(app, opts={})
def self.configure(app, opts={}) email_opts = app.opts[:error_email] ||= DEFAULTS email_opts = email_opts.merge(opts) unless email_opts[:to] && email_opts[:from] raise RodaError, "must provide :to and :from options to error_email plugin" end app.opts[:error_email] = email_opts end