Class: EgovUtils::LegalPersonSchema

Inherits:
AzaharaSchema::ModelSchema
  • Object
show all
Defined in:
app/schemas/egov_utils/legal_person_schema.rb

Class Method Summary collapse

Class Method Details

.attribute(model, attr_name, attr_type = nil) ⇒ Object



4
5
6
7
8
9
10
11
# File 'app/schemas/egov_utils/legal_person_schema.rb', line 4

def self.attribute(model, attr_name, attr_type=nil)
  case attr_name
  when 'legal_form'
    LegalFormAttribute.new(model, attr_name)
  else
    super
  end
end