app/models/dataset.rb
# The Model is a mixin for Naming, Translation, Validations and Conversions
The Model is a mixin for Naming, Translation, Validations and Conversions
The Model is a mixin for Naming Translation Validations and Conversions
def save_metadata(token)
    metadata.each do |language, metadata_info|
      metadata_info['language'] = language
      metadata_info.symbolize_keys!
      if metadata_info[:id].present?
        update_metadata(token, metadata_info)
      else
        create_metadata(token, metadata_info)
      end
    end
  end
def save_metadata ( token ) metadata . each do | language , metadata_info | metadata_info [ 'language' ] = language metadata_info . symbolize_keys! if metadata_info [ :id ] . present? update_metadata ( token , metadata_info ) else create_metadata ( token , metadata_info ) end end end
The Model is a mixin for Naming, Translation, Validations and Conversions
The Model is a mixin for Naming Translation Validations and Conversions
token