Sha256: 5643bf2a3e82b6508faca7b8f7cf4df1fab01421e145f39a17fc385856637e0e
Contents?: true
Size: 313 Bytes
Versions: 37
Compression:
Stored size: 313 Bytes
Contents
class UserAccount attr_accessor :user, :roles, :role_groups def initialize user, options = {} @user = user @roles = options[:roles] @role_groups = options[:role_groups] end def has_role? name true end def roles_list roles end def role_groups_list role_groups end end
Version data entries
37 entries across 37 versions & 4 rubygems