You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using ActiveModel only (not ActiveRecord), ActiveModel::Observing and ActiveModel::Observer are not defined because 'rails/observers/active_model/active_model' is not required in Railtie.
As a workaround, I can
require 'rails/observers/active_model/active_model'
before using ActiveModel::Observing, but I think it should be put somewhere in the Railtie.
The text was updated successfully, but these errors were encountered:
Hi,
When using ActiveModel only (not ActiveRecord), ActiveModel::Observing and ActiveModel::Observer are not defined because 'rails/observers/active_model/active_model' is not required in Railtie.
As a workaround, I can
require 'rails/observers/active_model/active_model'
before using ActiveModel::Observing, but I think it should be put somewhere in the Railtie.
The text was updated successfully, but these errors were encountered: