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

Feature request : Ability to customize the User class #57

Open
bricesanchez opened this issue Nov 25, 2015 · 0 comments
Open

Feature request : Ability to customize the User class #57

bricesanchez opened this issue Nov 25, 2015 · 0 comments

Comments

@bricesanchez
Copy link

Hello !

I'm using this gem in an namespaced app, my devise User is Portal::User, so i've to define the class_name of the belongs_to :user :
https://github.com/HeHStudy/surveyor/blob/master/lib/surveyor/models/response_set_methods.rb#L11

Could we find a clean way to add config in a initializer to be able to define the class_name like this ?

# lib/surveyor/models/response_set_methods.rb
[...]
belongs_to :user, class_name: Surveyor.user_class
[...]
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