Module: MeExceptional::BasicExtension::ClassMethods
- Defined in:
- lib/me_exceptional/extension.rb
Instance Method Summary collapse
Instance Method Details
#rescue_mail_from_methods(*methods) ⇒ Object
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/me_exceptional/extension.rb', line 19 def rescue_mail_from_methods(*methods) methods.each do |method| class_eval <<-EOF alias_method :#{method}_non_rescuable, :#{method} def #{method}(*args) #{method}_non_rescuable(*args) rescue Exception => e exception_catcher(e) #rescue_with_handler(e) end EOF end end |