mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-02-20 14:54:15 +01:00
(bug) check object = nil
This commit is contained in:
parent
91fa1fcd85
commit
75259773d5
@ -20,7 +20,7 @@ class Footprintable < ApplicationRecord
|
|||||||
return false unless persisted?
|
return false unless persisted?
|
||||||
|
|
||||||
reload
|
reload
|
||||||
footprint_children.map(&:check_footprint).all? && !chained_element.corrupted?
|
footprint_children.map(&:check_footprint).all? && chained_element && !chained_element.corrupted?
|
||||||
end
|
end
|
||||||
|
|
||||||
# @return [ChainedElement]
|
# @return [ChainedElement]
|
||||||
|
@ -14,8 +14,8 @@ if payment_schedule.operator_profile
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
json.main_object do
|
json.main_object do
|
||||||
json.type payment_schedule.main_object.object_type
|
json.type payment_schedule.main_object&.object_type
|
||||||
json.id payment_schedule.main_object.object_id
|
json.id payment_schedule.main_object&.object_id
|
||||||
end
|
end
|
||||||
if payment_schedule.gateway_subscription
|
if payment_schedule.gateway_subscription
|
||||||
# this attribute is used to known which gateway should we interact with, in the front-end
|
# this attribute is used to known which gateway should we interact with, in the front-end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user