Class: Jumbotron::Services::Canonical::EnsureScheduleGroup
- Inherits:
-
CommandTower::Services::ApplicationService
- Object
- CommandTower::Services::ApplicationService
- Jumbotron::Services::Canonical::EnsureScheduleGroup
- Defined in:
- app/services/jumbotron/services/canonical/ensure_schedule_group.rb
Instance Method Summary collapse
Instance Method Details
#call ⇒ Object
11 12 13 14 15 16 17 18 19 |
# File 'app/services/jumbotron/services/canonical/ensure_schedule_group.rb', line 11 def call context.schedule_group = resolve_group rescue ActiveRecord::RecordInvalid => e context.fail!( application_error: Jumbotron::Errors::Canonical::MutationFailedError.new( details: { message: e. } ) ) end |