Class: Labimotion::VocabularyHandler
- Inherits:
-
Object
- Object
- Labimotion::VocabularyHandler
- Defined in:
- lib/labimotion/libs/vocabulary_handler.rb
Class Method Summary collapse
- .load_all_vocabularies ⇒ Object
- .load_app_vocabularies ⇒ Object
- .update_vocabularies(properties, current_user, element) ⇒ Object
Class Method Details
.load_all_vocabularies ⇒ Object
16 17 18 |
# File 'lib/labimotion/libs/vocabulary_handler.rb', line 16 def load_all_vocabularies load_from_files + load_from_database end |
.load_app_vocabularies ⇒ Object
20 21 22 |
# File 'lib/labimotion/libs/vocabulary_handler.rb', line 20 def load_app_vocabularies load_from_files end |
.update_vocabularies(properties, current_user, element) ⇒ Object
6 7 8 9 10 11 12 13 14 |
# File 'lib/labimotion/libs/vocabulary_handler.rb', line 6 def update_vocabularies(properties, current_user, element) properties[Labimotion::Prop::LAYERS].each do |key, layer| update_layer_vocabularies(layer, key, properties, current_user, element) end properties rescue StandardError => e Labimotion.log_exception(e, current_user) properties end |