Sha256: df7d10c18742dba08351351ed669195054c1fb7e98c6388135fc4f2699e73cd8
Contents?: true
Size: 390 Bytes
Versions: 123
Compression:
Stored size: 390 Bytes
Contents
# frozen_string_literal: true class Ability < ::EacRailsBase0::AppBase::Ability def initialize(user) super(user) user ||= ::EacUsersSupport::User.new for_all_permissions(user) logged_permissions(user) unless user.new_record? end private def for_all_permissions(_user) can :read, :welcome end def logged_permissions(_user) can :manage, :all end end
Version data entries
123 entries across 123 versions & 2 rubygems