Sha256: 7a2d2989d7cf6147fe595fd2c5c9e0998a58924ac22ef5c496654f3853c27ab1
Contents?: true
Size: 525 Bytes
Versions: 4
Compression:
Stored size: 525 Bytes
Contents
module TypeStation class AdminController < ::TypeStation::ApplicationController protect_from_forgery with: :null_session before_filter :type_station_authenticate! before_filter :type_station_authorise! def type_station_authenticate! instance_eval &TypeStation.config.authenticate_with end def type_station_authorise! instance_eval &TypeStation.config.authorise_with end def type_station_current_user instance_eval &TypeStation.config.current_user end end end
Version data entries
4 entries across 4 versions & 1 rubygems