Sha256: 6c61914104b31d5920031d9ed3eb11460237c80d2f64bcc4af51b6a837bfbfbd
Contents?: true
Size: 421 Bytes
Versions: 7
Compression:
Stored size: 421 Bytes
Contents
module Errdo class ApplicationController < ::ApplicationController layout "errdo/errdo_layout" before_action :_authenticate! before_action :_authorize! def _current_user instance_eval(&Errdo.current_user_method) end private def _authenticate! instance_eval(&Errdo.authenticate_with) end def _authorize! instance_eval(&Errdo.authorize_with) end end end
Version data entries
7 entries across 7 versions & 1 rubygems