Skip to content

Commit

Permalink
Fixing breaking change
Browse files Browse the repository at this point in the history
  • Loading branch information
dapperDerek committed Jun 3, 2020
1 parent b9f4316 commit 2665d35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/stockpot/records_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ def create
list = element[:list] || 1
factory = element[:factory]
traits = element[:traits].map(&:to_sym) if element[:traits].present?
attributes = element[:attributes].to_h if element[:attributes].present?

list.times do
attributes = element[:attributes][n].to_h if element[:attributes].present?
factory_arguments = [ factory, *traits, attributes ].compact
@factory_instance = FactoryBot.create(*factory_arguments)
ids << @factory_instance.id
Expand Down

0 comments on commit 2665d35

Please sign in to comment.