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

Refinery::Blog.user_class #290

Closed
wants to merge 2 commits into from

Conversation

GringoDotDev
Copy link
Contributor

This issue was tracked in #286. I've added a config setting so that existing Rails applications can specify their own user class (generally User, but could be anything).

Only added in 2-0-stable as that's what I use in prod, but happy to take a crack at merging the patch into master as well (still learning the ins and outs of Git, so might take me a little bit to get the hang of it).

…finery::Blog engine to work out-of-box with existing Rails applications.

This issue was tracked in refinery#286.
@GringoDotDev
Copy link
Contributor Author

@parndt Hey, just checking in - any way I can help to get this merged?

@@ -10,4 +10,7 @@ Refinery::Blog.configure do |config|
# config.share_this_key = <%= Refinery::Blog.share_this_key.inspect %>

# config.page_url = <%= Refinery::Blog.page_url.inspect %>

# If you're grafting onto an existing app, change this to your User class
# Refinery::Blog.user_class = User
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should read:

  # Refinery::Blog.user_class = <%= Refinery::Blog.user_class.inspect %>

@parndt
Copy link
Member

parndt commented Oct 28, 2012

I think that the user_class should be implemented like forem due to rubysherpas/forem#88

@parndt
Copy link
Member

parndt commented Oct 28, 2012

Thanks for the reminder!

@parndt
Copy link
Member

parndt commented Nov 22, 2012

@radar hey are you able to give valuable input on this PR based on your experience with Spree and Forem?

@GringoDotDev
Copy link
Contributor Author

@parndt Sorry for the delay - just got back from vacation. I'll implement your feedback and check in by this weekend.

@GringoDotDev
Copy link
Contributor Author

Hey, sorry for the extreme lateness on this. I just pushed a commit to make everything work like forem i.e. you pass in a string instead of a class literal.

Please take a look and let me know if you have any more feedback. Thanks!

@GringoDotDev
Copy link
Contributor Author

Sorry forgot to copy you @parndt

@parndt
Copy link
Member

parndt commented Jan 31, 2013

Don't worry I'm already subscribed to the issue.. I was just sleeping 💤

I really think this should go against the master branch as it's a new feature..

@GringoDotDev
Copy link
Contributor Author

OK, I've merged the feature into master branch (new pull request).

@ugisozols ugisozols closed this Feb 1, 2013
@ugisozols
Copy link
Member

#317

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

Successfully merging this pull request may close these issues.

4 participants