Sha256: 484c83fd69dbffe0d8016bde9ad4b3f93ae8af50754929aa8d2ecb2bcfac9a71
Contents?: true
Size: 246 Bytes
Versions: 2
Compression:
Stored size: 246 Bytes
Contents
module RevelryContent::ControllerAuthorization extend ActiveSupport::Concern included do before_action :check_authorization end def check_authorization throw "Unauthorized" unless RevelryContent.config.authorize(self) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
revelry_content-0.0.1.2 | lib/revelry_content/controller_concern.rb |
revelry_content-0.0.1.1 | lib/revelry_content/controller_concern.rb |