Sha256: fc30066c313d3f3e27fdd29816aa8b691fa657fb51fef77b32febdf243b7e0e7

Contents?: true

Size: 180 Bytes

Versions: 8

Compression:

Stored size: 180 Bytes

Contents

class StudyEngine::Admin::ApplicationController < StudyEngine::ApplicationController
  def require_admin
    head :forbidden and return false unless current_user.admin?
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
study_engine-0.3.1 app/controllers/study_engine/admin/application_controller.rb
study_engine-0.3.0 app/controllers/study_engine/admin/application_controller.rb
study_engine-0.2.2 app/controllers/study_engine/admin/application_controller.rb
study_engine-0.2.1 app/controllers/study_engine/admin/application_controller.rb
study_engine-0.2.0 app/controllers/study_engine/admin/application_controller.rb
study_engine-0.1.1 app/controllers/study_engine/admin/application_controller.rb
study_engine-0.1.0 app/controllers/study_engine/admin/application_controller.rb
study_engine-0.0.2 app/controllers/study_engine/admin/application_controller.rb