belongs_to associations became required by default unless specified otherwise from Rails 5.0 and this explicitly sets the detail association on Line to optional. I used required: false instead of optional: true because the optional option was only added in Rails 5, but required will work in Rails < 5. Fixes #183
belongs_to
associations became required by default unless specified otherwise from Rails 5.0 and this explicitly sets thedetail
association onLine
to optional. I usedrequired: false
instead ofoptional: true
because theoptional
option was only added in Rails 5, butrequired
will work in Rails < 5. Fixes #183