Sha256: 63b8a41c1642340ab13386b374f20180c462be494f187939170c761e5de56884
Contents?: true
Size: 431 Bytes
Versions: 15
Compression:
Stored size: 431 Bytes
Contents
# frozen_string_literal: true module Decidim # The form object that handles the data behind updating a user's # interests in their profile page. class UserInterestsForm < Form mimic :user attribute :scopes, Array[UserInterestScopeForm] def map_model(user) self.scopes = user.organization.scopes.top_level.map do |scope| UserInterestScopeForm.from_model(scope:, user:) end end end end
Version data entries
15 entries across 15 versions & 1 rubygems