oauth-plugin icon indicating copy to clipboard operation
oauth-plugin copied to clipboard

Cohabitating oauth-plugin with authlogic-connect yields naming conflicts

Open teejayvanslyke opened this issue 14 years ago • 1 comments

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?

teejayvanslyke avatar Mar 25 '11 22:03 teejayvanslyke

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.

pelle avatar Mar 30 '11 00:03 pelle