Sha256: a5a6cdea516409f9aa80a37dd26e533258cfa721552b2ff2e4fd9adc5a3bdf4f

Contents?: true

Size: 439 Bytes

Versions: 2

Compression:

Stored size: 439 Bytes

Contents

module TypeStation
  class AdminController < ::TypeStation::ApplicationController
    protect_from_forgery with: :null_session

    before_action :type_station_authenticate!
    before_action :type_station_authorise!

    private

    def type_station_authenticate!
      instance_eval &TypeStation.config.authenticate_with
    end

    def type_station_authorise!
      instance_eval &TypeStation.config.authorise_with
    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
type_station-0.7.0 app/controllers/type_station/admin_controller.rb
type_station-0.6.0 app/controllers/type_station/admin_controller.rb