Module: Roda::RodaPlugins::ErrorEmail::ClassMethods

Defined in:
lib/roda/plugins/error_email.rb

Instance Method Summary collapse

Instance Method Details

#inherited(subclass) ⇒ Object

Dup the error email opts in the subclass so changes to the subclass do not affect the superclass.



87
88
89
90
91
# File 'lib/roda/plugins/error_email.rb', line 87

def inherited(subclass)
  super
  subclass.opts[:error_email] = subclass.opts[:error_email].dup
  subclass.opts[:error_email][:headers] = subclass.opts[:error_email][:headers].dup
end