Class: ActionController::Base
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.error_logs ⇒ Object
126 127 128 129 |
# File 'lib/error_log/controller.rb', line 126 def self.error_logs append_view_path File.join(ErrorLog.path,'views') self.send(:include,ErrorLog::Controller) end |
Instance Method Details
#error_log_rescue(e) ⇒ Object
131 132 133 134 135 136 137 138 139 |
# File 'lib/error_log/controller.rb', line 131 def error_log_rescue(e) err = ErrorLog::Model.new( :error => e.to_str, :backtrace => e.backtrace, :category => 'rails' ) err.save raise e end |