app/models/anoubis/tenant/user.rb
##
# Attach groups to user json outputs
Attach groups to user json outputs
Attach groups to user json outputs
def as_json(options={})
    h = super(options)
    h[:groups_access] = []
    self.user_groups.each do |ug|
      h[:groups_access].push ug.group.full_ident
    end
    h
  end
def as_json ( options = { } ) h = super ( options ) h [ :groups_access ] = [ ] self . user_groups . each do | ug | h [ :groups_access ] . push ug . group . full_ident end h end
Attach groups to user json outputs
Attach groups to user json outputs
options
<not_specific>