engine/app/controllers/application_controller.rb

14 lines
317 B
Ruby
Raw Normal View History

class ApplicationController < ActionController::Base
2010-03-29 22:01:47 +00:00
protect_from_forgery
protected
unless Rails.env.development? || Rails.env.test?
rescue_from Exception, :with => :render_error
def render_error
render :template => "/admin/errors/500", :layout => 'admin/box', :status => 500
end
end
2010-03-29 22:01:47 +00:00
end