Class: PrelandsRails::UpdateSimpleSource::UpdateRecord
- Inherits:
-
Object
- Object
- PrelandsRails::UpdateSimpleSource::UpdateRecord
- Includes:
- Interactor, Interactor::Contracts, AbstractInteractor, Base
- Defined in:
- lib/prelands_rails/update_simple_source/update_record.rb
Overview
обновит запись ::Preland::SimpleSource
Instance Method Summary collapse
Methods included from AbstractInteractor
Instance Method Details
#act ⇒ Object
30 31 32 33 34 35 36 37 38 |
# File 'lib/prelands_rails/update_simple_source/update_record.rb', line 30 def act source = context.model_preland_simple_source.find_by aws_prefix: context.old_aws_prefix source.archive = context.archive if context.archive source.preland_domain_ids = context.preland_domain_ids source.locales = context.incoming_locales source.aws_prefix = context.aws_prefix source.save! context.preland_simple_source = source end |