pushtype / push_type

PushType is a modern, open source content management system for Ruby on Rails.
http://www.pushtype.org
Other
290 stars 32 forks source link

Make user class configuration option #32

Open aaronrussell opened 7 years ago

aaronrussell commented 7 years ago

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 commented 7 years ago

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 commented 7 years ago

@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 commented 7 years ago

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 commented 7 years ago

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...