Class: EgovUtils::UserSchema

Inherits:
EngineSchema
  • Object
show all
Defined in:
app/schemas/egov_utils/user_schema.rb

Instance Method Summary collapse

Methods inherited from EngineSchema

engine_name, #engine_name

Instance Method Details

#default_columnsObject



8
9
10
# File 'app/schemas/egov_utils/user_schema.rb', line 8

def default_columns
  ['fullname', 'provider', 'roles', 'groups']
end

#initialize_available_attributesObject



12
13
14
15
16
17
# File 'app/schemas/egov_utils/user_schema.rb', line 12

def initialize_available_attributes
  @available_attributes ||= []
  @available_attributes << AzaharaSchema::DerivedAttribute.new(model, 'fullname', :concat, 'lastname', 'firstname', schema: self)
  super
  @available_attributes << AllRoleNames.new(model, 'all_role_names', 'string')
end

#main_attribute_nameObject



4
5
6
# File 'app/schemas/egov_utils/user_schema.rb', line 4

def main_attribute_name
  'fullname'
end