Sha256: bd41ae9ccf9ef3d4227e01d5a757777b39b0d6777fc8a9c8685773cbdc709143
Contents?: true
Size: 328 Bytes
Versions: 5
Compression:
Stored size: 328 Bytes
Contents
# frozen_string_literal: true module Talkie module Controller extend ActiveSupport::Concern included do delegate :allow?, to: :current_permission helper_method :allow? end protected def current_permission @current_permission ||= Talkie::Permission.new(current_user) end end end
Version data entries
5 entries across 5 versions & 1 rubygems