Sha256: 2e74711d334cb3bffec9cddad51d0c807105c8ed6fab27e98eb00e57c8c1e7fd

Contents?: true

Size: 609 Bytes

Versions: 21

Compression:

Stored size: 609 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)

              people = people.users
              people.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

21 entries across 21 versions & 1 rubygems

Version Path
eco-helpers-0.8.3 lib/eco/api/usecases/default_cases/refresh_presets_case.rb
eco-helpers-0.8.2 lib/eco/api/usecases/default_cases/refresh_presets_case.rb
eco-helpers-0.8.1 lib/eco/api/usecases/default_cases/refresh_presets_case.rb
eco-helpers-0.7.2 lib/eco/api/usecases/default_cases/refresh_presets_case.rb
eco-helpers-0.7.1 lib/eco/api/usecases/default_cases/refresh_presets_case.rb
eco-helpers-0.6.17 lib/eco/api/usecases/default_cases/refresh_presets_case.rb
eco-helpers-0.6.16 lib/eco/api/usecases/default_cases/refresh_presets_case.rb
eco-helpers-0.6.15 lib/eco/api/usecases/default_cases/refresh_presets_case.rb
eco-helpers-0.6.13 lib/eco/api/usecases/default_cases/refresh_presets_case.rb
eco-helpers-0.6.12 lib/eco/api/usecases/default_cases/refresh_presets_case.rb
eco-helpers-0.6.11 lib/eco/api/usecases/default_cases/refresh_presets_case.rb
eco-helpers-0.6.9 lib/eco/api/usecases/default_cases/refresh_presets.rb
eco-helpers-0.6.8 lib/eco/api/usecases/default_cases/refresh_presets.rb
eco-helpers-0.6.7 lib/eco/api/usecases/default_cases/refresh_presets.rb
eco-helpers-0.6.6 lib/eco/api/usecases/default_cases/refresh_presets.rb
eco-helpers-0.6.5 lib/eco/api/usecases/default_cases/refresh_presets.rb
eco-helpers-0.6.4 lib/eco/api/usecases/default_cases/refresh_presets.rb
eco-helpers-0.6.3 lib/eco/api/usecases/default_cases/refresh_presets.rb
eco-helpers-0.6.2 lib/eco/api/usecases/default_cases/refresh_presets.rb
eco-helpers-0.6.1 lib/eco/api/usecases/default_cases/refresh_presets.rb