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

Version Path
type_station-0.7.0 app/controllers/type_station/application_controller.rb
type_station-0.6.0 app/controllers/type_station/application_controller.rb
type_station-0.5.4 app/controllers/type_station/application_controller.rb
type_station-0.5.3 app/controllers/type_station/application_controller.rb
type_station-0.5.2 app/controllers/type_station/application_controller.rb
type_station-0.5.1 app/controllers/type_station/application_controller.rb
type_station-0.4.7 app/controllers/type_station/application_controller.rb
type_station-0.4.6 app/controllers/type_station/application_controller.rb
type_station-0.4.5 app/controllers/type_station/application_controller.rb
type_station-0.4.4 app/controllers/type_station/application_controller.rb
type_station-0.4.3 app/controllers/type_station/application_controller.rb
type_station-0.4.2 app/controllers/type_station/application_controller.rb
type_station-0.4.1 app/controllers/type_station/application_controller.rb
type_station-0.4.0 app/controllers/type_station/application_controller.rb
type_station-0.3.4 app/controllers/type_station/application_controller.rb
type_station-0.3.3 app/controllers/type_station/application_controller.rb
type_station-0.3.2 app/controllers/type_station/application_controller.rb
type_station-0.3.1 app/controllers/type_station/application_controller.rb
type_station-0.3.0 app/controllers/type_station/application_controller.rb
type_station-0.2.3 app/controllers/type_station/application_controller.rb