App::UserForm is a custom form class I made that loads and saves data from and to a few different ActiveRecord classes. To make this work with validations, so far I've only needed to include ActiveModel::Model:
module App
class UserForm
include ActiveModel::Model
validates :street, :city, :country, presence: true
...
If I also include ActiveRecord::Reflection in my custom form class, the error is gone. What I'm wondering is if this is the right approach, or that maybe bootstrap_form should not rely on reflections being available? Or are there other thoughts for fixing this? And if this is the right approach, should this be documented as a change/solution on the side of bootstrap_form?
With release 5.2.0 my app's system tests run into this error:
I believe this is after this change: https://github.com/bootstrap-ruby/bootstrap_form/pull/654
App::UserForm
is a custom form class I made that loads and saves data from and to a few different ActiveRecord classes. To make this work with validations, so far I've only needed toinclude ActiveModel::Model
:If I also
include ActiveRecord::Reflection
in my custom form class, the error is gone. What I'm wondering is if this is the right approach, or that maybe bootstrap_form should not rely onreflections
being available? Or are there other thoughts for fixing this? And if this is the right approach, should this be documented as a change/solution on the side of bootstrap_form?