oauth-plugin
oauth-plugin copied to clipboard
Cohabitating oauth-plugin with authlogic-connect yields naming conflicts
I've got a site which uses the authlogic-connect gem for Facebook/Twitter OAuth authentication. When I run the ouath-plugin generator, I get this:
$ >> rails g oauth_provider
invoke active_record
The name 'AccessToken' is either already used in your application or reserved by Ruby on Rails. Please choose an alternative and run this generator again.
I wouldn't take issue with renaming AccessToken, but unfortunately that model is buried within the authlogic-connect gem.
Perhaps we could parameterize the AccessToken class name in the generator?
I don't have much time to look at this right now, but I'd happy to look at a patch as long as it doesn't change the default behavior.