Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When using ActiveModel only (not ActiveRecord) ActiveModel::Observing is not defined. #5

Closed
cabeca opened this issue Jun 4, 2013 · 1 comment

Comments

@cabeca
Copy link

cabeca commented Jun 4, 2013

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.

@rafaelfranca
Copy link
Member

This was intentional. If you are not using ActiveRecord you have to require it. Maybe we can create a rails/observers/active_model as alias

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants