Sha256: 824eb8f37b5fae30f6ab71e1aaa69a5ba640c2d82cc60be6b62b86f301526ca7
Contents?: true
Size: 714 Bytes
Versions: 1
Compression:
Stored size: 714 Bytes
Contents
module Eco module API module UseCases class DefaultCases class RefreshPresets < BaseCase def process @cases.define("refresh-presets", type: :transform) do |people, session| job = session.job_group("main").new("update", type: :update, sets: :account) users = people.users session.logger.warn("There are no people with account amoung your #{people.length} people") 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
eco-helpers-0.8.4 | lib/eco/api/usecases/default_cases/refresh_presets_case.rb |