Sha256: 9fe4601b7c614285247dff80fcd6d15b61cf90f2759b61d98afa238fb638db68
Contents?: true
Size: 776 Bytes
Versions: 50
Compression:
Stored size: 776 Bytes
Contents
module Eco module API class UseCases class DefaultCases class RefreshPresets < DefaultCase def process @cases.define("refresh-presets", type: :transform) do |people, session, options, usecase| job = session.job_group("main").new("update", usecase: usecase, type: :update, sets: :account) users = people.users session.logger.warn("There are no people with account amoung your #{people.length} people") unless users.length > 0 users.each do |person| person.account.permissions_custom = session.new_preset(person) job.add(person) end end end end end end end end
Version data entries
50 entries across 50 versions & 1 rubygems