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

Fix "undefined method `acts_as_authentic_config'" error when using rake #3

Open
joost opened this issue Sep 7, 2009 · 1 comment
Open

Comments

@joost
Copy link

joost commented Sep 7, 2009

Replace following in lib/authlogic_oauth.rb. See:

if defined?(Authlogic) # Fixes "undefined method `acts_as_authentic_config'" error when using rake.
  ActiveRecord::Base.send(:include, AuthlogicOauth::ActsAsAuthentic)
  Authlogic::Session::Base.send(:include, AuthlogicOauth::Session)
  ActionController::Base.helper AuthlogicOauth::Helper
end
@joost
Copy link
Author

joost commented Sep 7, 2009

Seems ruby/rails needs to actually load Authlogic. So calling only Authlogic would also be enough but I don't think it is really nice:

Authlogic # Simply only call it. No if statement.

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

1 participant