Sha256: e8b4244dea7627052c83fd5a0266e7138c4a7bfb7a7efd9ad90a488c0021ea6c

Contents?: true

Size: 452 Bytes

Versions: 1

Compression:

Stored size: 452 Bytes

Contents

module Exceptron
  class LocalExceptionsController < ActionController::Base
    append_view_path File.expand_path("../views", __FILE__)
    include Exceptron::Helpers

    helper Exceptron::LocalHelpers

    def internal_server_error
      render :action => Exceptron.rescue_templates[exception_presenter.original_exception.class.name]
    end

    def self.inherited(subclass)
      super
      Exceptron.local_controller = subclass
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
exceptron-0.0.2 lib/exceptron/local_exceptions_controller.rb