module ExceptionNotification::DeprecatedMethods

Copyright © 2008-2009 Peter H. Boling of 9thBit LLC Released under the MIT license

Public Instance Methods

deprecation_warning(old, new, reason = "") click to toggle source
# File lib/exception_notification/deprecated_methods.rb, line 55
def deprecation_warning(old, new, reason = "")
  logger.info("[DEPRECATION WARNING] ** Method '#{old}' has been replaced by '#{new}', please update your code.#{' Reason for change: ' + reason + '.' if reason}")
end
exception_notifier_verbose() click to toggle source

Now defined in Object class by init.rb & ExceptionNotifiable.rb module,

so we need to override them for with the controller settings
# File lib/exception_notification/deprecated_methods.rb, line 30
def exception_notifier_verbose
  deprecation_warning("exception_notifier_verbose", "exception_notifiable_verbose", @@namespacing)
  exception_notifiable_verbose
end
exception_notifier_verbose=(arg) click to toggle source
# File lib/exception_notification/deprecated_methods.rb, line 42
def exception_notifier_verbose=(arg)
  deprecation_warning("exception_notifier_verbose=", "exception_notifiable_verbose=", @@namespacing)
  exception_notifiable_verbose = arg
end
http_error_codes() click to toggle source
# File lib/exception_notification/deprecated_methods.rb, line 8
def http_error_codes
  deprecation_warning("http_error_codes", "error_class_status_codes")
  error_class_status_codes
end
http_error_codes=(arg) click to toggle source
# File lib/exception_notification/deprecated_methods.rb, line 13
def http_error_codes=(arg)
  deprecation_warning("http_error_codes", "error_class_status_codes")
  error_class_status_codes=(arg)
end
notification_level() click to toggle source
# File lib/exception_notification/deprecated_methods.rb, line 38
def notification_level
  deprecation_warning("notification_level", "exception_notifiable_notification_level", @@namespacing)
  exception_notifiable_notification_level
end
notification_level=(arg) click to toggle source
# File lib/exception_notification/deprecated_methods.rb, line 50
def notification_level=(arg)
  deprecation_warning("notification_level=", "exception_notifiable_notification_level=", @@namespacing)
  exception_notifiable_notification_level = arg
end
rails_error_codes() click to toggle source
# File lib/exception_notification/deprecated_methods.rb, line 18
def rails_error_codes
  deprecation_warning("rails_error_codes", "error_class_status_codes", @@rails2ruby)
  error_class_status_codes
end
rails_error_codes=(arg) click to toggle source
# File lib/exception_notification/deprecated_methods.rb, line 23
def rails_error_codes=(arg)
  deprecation_warning("rails_error_codes=", "error_class_status_codes=", @@rails2ruby)
  error_class_status_codes=(arg)
end
silent_exceptions() click to toggle source
# File lib/exception_notification/deprecated_methods.rb, line 34
def silent_exceptions
  deprecation_warning("silent_exceptions", "exception_notifiable_silent_exceptions", @@namespacing)
  exception_notifiable_silent_exceptions
end
silent_exceptions=(arg) click to toggle source
# File lib/exception_notification/deprecated_methods.rb, line 46
def silent_exceptions=(arg)
  deprecation_warning("silent_exceptions=", "exception_notifiable_silent_exceptions=", @@namespacing)
  exception_notifiable_silent_exceptions = arg
end