The code powering m.abunchtell.com https://m.abunchtell.com
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 
 
 

24 satır
444 B

  1. # frozen_string_literal: true
  2. module Admin
  3. class BaseController < ApplicationController
  4. include Authorization
  5. include AccountableConcern
  6. layout 'admin'
  7. before_action :require_staff!
  8. before_action :set_body_classes
  9. private
  10. def set_body_classes
  11. @body_classes = 'admin'
  12. end
  13. def set_user
  14. @user = Account.find(params[:account_id]).user || raise(ActiveRecord::RecordNotFound)
  15. end
  16. end
  17. end