Sha256: 2fb4dbd24f24045ef08c7787a6af7130463ac3d25fbec73b40a7c50b13df84e3

Contents?: true

Size: 275 Bytes

Versions: 6

Compression:

Stored size: 275 Bytes

Contents

module Rapidfire
  class ApplicationController < ::ApplicationController
    helper_method :can_administer?

    def authenticate_administrator!
      unless can_administer?
        raise Rapidfire::AccessDenied.new("cannot administer questions")
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
rapidfire-3.0.0 app/controllers/rapidfire/application_controller.rb
rapidfire-2.1.0 app/controllers/rapidfire/application_controller.rb
rapidfire-2.0.0 app/controllers/rapidfire/application_controller.rb
unique_rapidfire-1.0.0 app/controllers/rapidfire/application_controller.rb
rapidfire-1.2.0 app/controllers/rapidfire/application_controller.rb
rapidfire-1.0.0 app/controllers/rapidfire/application_controller.rb