Sha256: 4f0451b5bf3281be7b2507e56009a31f8f6e590cea411bf24ec6d5c954ff064a

Contents?: true

Size: 331 Bytes

Versions: 1

Compression:

Stored size: 331 Bytes

Contents

unless defined?(Revelry::Content::ControllerAuthorization)
  module Revelry::Content::ControllerAuthorization
    extend ActiveSupport::Concern

    included do
      before_action :check_authorization
    end

    def check_authorization
      throw "Unauthorized" unless Revelry::Content.config.authorize(self)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
revelry_content-1.0.0 lib/revelry/content/admin_concern.rb