Searched defs:update_or_create_by_name (Results 1 - 1 of 1) sorted by relevance

/ontohub/lib/
H A Drake_helper.rb78 Settings.formality_levels.each { |t| update_or_create_by_name(FormalityLevel, t.to_h) }
79 Settings.license_models.each { |t| update_or_create_by_name(LicenseModel, t.to_h) }
80 Settings.ontology_types.each { |t| update_or_create_by_name(OntologyType, t.to_h) }
81 Settings.tasks.each { |t| update_or_create_by_name(Task, t.to_h) }
86 def self.update_or_create_by_name(klass, h) singleton method in class:RakeHelper.Generate

Completed in 67 milliseconds