Undefined method 'name' for YAML object
that issue came only when I didn't load the require models for save yaml object..

But for that I have to load the 10 modules


require 'app/models/price_modifier_ticket_delta_mapping'

require 'app/models/payment_type'

require 'client_message_trigger'

require 'app/models/payment_type_ticket_mapping'


require 'app/models/user'
require 'app/models/revenue_type'

require 'app/models/revenue_type_group'

require 'app/models/tax'

require 'app/models/punch'

require 'app/models/tax_type'    


there is any other way without require these modules i can save YAMl object
Undefined method 'name' for YAML object
===

that issue came only when I didn't load the require models for save yaml object..

But for that I have to load the 10 modules


require 'app/models/price_modifier_ticket_delta_mapping'

require 'app/models/payment_type'

require 'client_message_trigger'

require 'app/models/payment_type_ticket_mapping'


require 'app/models/user'
require 'app/models/revenue_type'

require 'app/models/revenue_type_group'

require 'app/models/tax'

require 'app/models/punch'

require 'app/models/tax_type'    


there is any other way without require these modules i can save YAMl object