Skip to content
This repository has been archived by the owner on Jan 16, 2024. It is now read-only.

Make user class configuration option #32

Open
aaronrussell opened this issue Feb 23, 2017 · 4 comments
Open

Make user class configuration option #32

aaronrussell opened this issue Feb 23, 2017 · 4 comments
Labels

Comments

@aaronrussell
Copy link
Contributor

To make it easier to integrate PushType with own user and authentication setups, there should be a configuration options for the user class.

# config/initializers/push_type.rb
config.user_class = PushType::User

This option should primarily be used for defining the creator and updater associations on PushType::Node, although there may be other cases where the option is needed.

@prussiap
Copy link

What would it be for normal devise User ? just = User model ?

Still trying to figure out how to mix my normal User model with devise and my PT nodes..

@aaronrussell
Copy link
Contributor Author

@prussiap I think I might have answered your question here: https://discuss.pushtype.org/t/adding-user-roles-and-even-document-types/215/4?u=aaron

@prussiap
Copy link

prussiap commented May 4, 2017

You certainly did.
Sorry for asking the simple silly questions since i'm a rails developer but PushType is pretty young and my Rails 5 work is a bit rusty. Getting back in for my site.. Your PT is very cool. I'd love to help build and improve if i can work on some stuff or there are issues. Would help me get my rails rust out and long wrong provide for a stronger app on everyone's end.

If/since I intend on rewriting some of the devise/omniauth/role related stuff maybe i can merge or do some work there that kills two birds one stone and helps you? thoughts and future directions? I can do it as a plugin, or option.

I haven't dug enough in your code yet but can. Like I said I think as is PT provides a very simple way to have users do some basic CMS and if we could a few fun templates this could compete with square but for people that have technical skill. AKA packaging this with AWS (bitnami), dockerize, DigitalOcean, or my favorite the free heroku setup that gets people quick access and setup..

They can switch Zurb templates quickly that just would the early and clean easy way to do the PT for less technical folks without going through the horrid Wordpress security stuff.

Then for more advanced folks we can build on top of that with Thredded/discource, wiki and blog which are basically default PT, combined with role specific devise admin.

Just random thoughts. I've been through your site and the docs but not sure if there was a clear path and deadline for stuff. If it's something I can help with I gladly will chat with you on Slack/email, Signal etc and maybe do some basic stories.

@aaronrussell
Copy link
Contributor Author

Hey @prussiap cool, would love any help. Probably best if we discuss this over on the forum so I'll post some thoughts over there now...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants