Skip to content

Commit

Permalink
Add allow_nil to delegate
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiendupont committed Oct 15, 2018
1 parent ea6261c commit 90da9fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/conversion_host.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class ConversionHost < ApplicationRecord
belongs_to :resource, :polymorphic => true
has_many :service_template_transformation_plan_tasks, :dependent => :nullify
has_many :active_tasks, -> { where(:state => 'active') }, :class_name => ServiceTemplateTransformationPlanTask, :inverse_of => :conversion_host
delegate :ext_management_system, :to => :resource
delegate :ext_management_system, :to => :resource, :allow_nil => true

# To be eligible, a conversion host must have the following properties
# - A transport mechanism is configured for source (set by 3rd party)
Expand Down

0 comments on commit 90da9fa

Please sign in to comment.