Sha256: 12a1f44f761e102a54ae504d831cfee821f5e6970b0b8a1251472b5d76e2b9db
Contents?: true
Size: 391 Bytes
Versions: 23
Compression:
Stored size: 391 Bytes
Contents
module TypeStation class ApplicationController < ActionController::Base rescue_from ::TypeStation::PageNotFoundError, :with => :page_not_found private def type_station_current_user instance_eval &TypeStation.config.current_user end def page_not_found render file: "#{Rails.root}/public/404.html", layout: false, status: 404 and return end end end
Version data entries
23 entries across 23 versions & 1 rubygems