Sha256: 1fd18c407fd37ce6e67aee4c2abdf154a236d6c4f206e13ec3c1e3dea0c5759d

Contents?: true

Size: 395 Bytes

Versions: 29

Compression:

Stored size: 395 Bytes

Contents

class Eco::API::UseCases::DefaultCases::ResetLandingPageCase < Eco::API::Common::Loaders::UseCase
  name "reset-landing-page"
  type :transform

  def main(people, session, options, usecase)
    update   = session.new_job("main", "update", :update, usecase, :core)

    people.users.each do |user|
      user.account.landing_page_id = nil
      update.add(user)
    end
  end

end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
eco-helpers-2.0.16 lib/eco/api/usecases/default_cases/reset_landing_page_case.rb
eco-helpers-2.0.15 lib/eco/api/usecases/default_cases/reset_landing_page_case.rb
eco-helpers-2.0.14 lib/eco/api/usecases/default_cases/reset_landing_page_case.rb
eco-helpers-2.0.13 lib/eco/api/usecases/default_cases/reset_landing_page_case.rb
eco-helpers-2.0.12 lib/eco/api/usecases/default_cases/reset_landing_page_case.rb
eco-helpers-2.0.11 lib/eco/api/usecases/default_cases/reset_landing_page_case.rb
eco-helpers-2.0.10 lib/eco/api/usecases/default_cases/reset_landing_page_case.rb
eco-helpers-2.0.9 lib/eco/api/usecases/default_cases/reset_landing_page_case.rb
eco-helpers-2.0.8 lib/eco/api/usecases/default_cases/reset_landing_page_case.rb
eco-helpers-2.0.7 lib/eco/api/usecases/default_cases/reset_landing_page_case.rb
eco-helpers-2.0.6 lib/eco/api/usecases/default_cases/reset_landing_page_case.rb
eco-helpers-2.0.5 lib/eco/api/usecases/default_cases/reset_landing_page_case.rb
eco-helpers-2.0.4 lib/eco/api/usecases/default_cases/reset_landing_page_case.rb
eco-helpers-2.0.3 lib/eco/api/usecases/default_cases/reset_landing_page_case.rb
eco-helpers-2.0.2 lib/eco/api/usecases/default_cases/reset_landing_page_case.rb
eco-helpers-1.5.15 lib/eco/api/usecases/default_cases/reset_landing_page_case.rb
eco-helpers-1.5.14 lib/eco/api/usecases/default_cases/reset_landing_page_case.rb
eco-helpers-1.5.13 lib/eco/api/usecases/default_cases/reset_landing_page_case.rb
eco-helpers-1.5.12 lib/eco/api/usecases/default_cases/reset_landing_page_case.rb
eco-helpers-1.5.11 lib/eco/api/usecases/default_cases/reset_landing_page_case.rb