Sha256: 9800581b6b6b95bde5347ea41ea3b99c2280c11ebc08448db8594fe37d30e07c
Contents?: true
Size: 335 Bytes
Versions: 5
Compression:
Stored size: 335 Bytes
Contents
module Guts # Controller concern for permissionable controllers with CanCanCan module ControllerPermissionConcern extend ActiveSupport::Concern included do # Defines the permission name for this controller def self.permission "Guts::#{controller_name.classify}".constantize end end end end
Version data entries
5 entries across 5 versions & 1 rubygems