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.



92
93
94
95
96
97
# File 'lib/roda/plugins/error_email.rb', line 92

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