Sha256: be2977ca93319a6533d6bf65effe3b34427f520aeb9453f33ac0ca5a23b94d77
Contents?: true
Size: 318 Bytes
Versions: 2
Compression:
Stored size: 318 Bytes
Contents
class Admin::BaseAccountController < Admin::BaseController before_filter :set_account def set_account @account = current_user.account end def require_authentication unless current_user and current_user.account return redirect_to_login(t(:'adva.flash.authentication_required')) end end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
adva_user-0.0.1 | app/controllers/admin/base_account_controller.rb |
adva-0.0.1 | adva_user/app/controllers/admin/base_account_controller.rb |