Sha256: 918aaad0104306a4b7c74a7f2541a4af187493d081670feb30c5babcf86e3860
Contents?: true
Size: 209 Bytes
Versions: 1
Compression:
Stored size: 209 Bytes
Contents
module UcbRailsUser::Concerns::UserRolesConcerns extend ActiveSupport::Concern # Overridden by application def roles [] end def has_role?(role) superuser? || roles.include?(role) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ucb_rails_user-5.0.0 | app/models/ucb_rails_user/concerns/user_roles_concerns.rb |