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

Rails 2.0.2 generate oauth_consumer gives errors #38

Open
amnwebmaster opened this issue Jan 20, 2011 · 1 comment
Open

Rails 2.0.2 generate oauth_consumer gives errors #38

amnwebmaster opened this issue Jan 20, 2011 · 1 comment

Comments

@amnwebmaster
Copy link

On Rails 2.0.2 & Ruby 1.8.7

running script/generate oauth_consumer give the error

/vendor/plugins/oauth-plugin/lib/oauth-plugin.rb:6: undefined method `version' for Rails:Module (NoMethodError)

Removing the rails 3 version check, running the script again then gives

/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:263:in load_missing_constant': uninitialized constant Rails::Railtie (NameError) vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:453:inconst_missing'
from /u/apps/netadventist3/current/vendor/plugins/oauth-plugin/lib/oauth-plugin.rb:16

Unfortunately the app I'm extending has Rails 2.0.2 frozen in

@Kimtaro
Copy link
Contributor

Kimtaro commented Jan 21, 2011

You need to add one extra condition for rails 3, not remove the check. I ran into the same problem and solved it with this patch: https://github.com/pelle/oauth-plugin/issues#issue/36

Cheers
Kim

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