-
Notifications
You must be signed in to change notification settings - Fork 423
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
permissions: undefined method `can_read_forem_forums?' #88
Comments
Oh bother. That's because the User class is reloaded every request in dev environment. You can get around this bug by putting this inside your User model:
I will fix this in the morning to be inside a config.to_prepare hook on the engine. Thanks for reporting! On 29/11/2011, at 22:23, Paul [email protected] wrote:
|
I fixed this in @056de4c and forgot to mention it in the commit message. Thanks again for letting us know of this one. |
weird, the bug is still there.. In case I've messed up s.th. in my app or some gem is interfering, I created a new rails 3.1.1 app with devise and forem only, still the same error. Observations:
|
Wow, that's very weird. It totally didn't expect that. Looking into it. |
Ok, I'm stupid. It happens sometimes. Was hardcoding it to But hey! We got it fixed :) |
:) I think it's still not fixed ^^ If I put |
Could you show me what your |
Ok, that's exactly what I have and with my local version I can make multiple requests and not have it error out. What page are you doing this on? Maybe that has something to do with it? |
amazing.. I just went to |
Super weird! I don't know, sorry. |
Whats interesting is, it worked yesterday on dev and it still works on production, so not a big deal... |
Thank you for your time ;) |
You don't need to run |
Thanks for your interest in using Forem :) |
This issue is still happening! I think it's due to a class caching issue. Whatever's responsible for specifying the class for As much as I hate to, I've done a bandaid fix in @6d84403 to work around this issue. Hopefully very temporarily. |
works now ;) thank you very much |
I think I understand why it's happening now, at least. In dev environment when you set What I think we need to do is make people set this to a string so that when we go to reference it we call it like this:
What that'll do is that it'll grab the currently available For my next trick, I'm going to need to work out how to deprecate this neatly. |
Pretty damn confident in the above explanation. Deprecating |
Any tips for getting this working along side Spree? I'm getting: undefined method `can_read_forem_forums?' for #Spree::User:0x007f90ea45a3f8 I think the easiest thing would be to use something other than User in the app and leave User to spree (1.0.0) but thought I'd check first. |
Hey Ben, You did set this up as If you happen to have two |
Running webrick for development I keep getting this nasty error:
Showing /home/kulpae/.rvm/gems/ruby-1.9.2-p180/bundler/gems/forem-76d997679209/app/views/forem/categories/_category.html.erb where line #1 raised:
I've an initializer config/initializers/forem.rb with
Observations:
The text was updated successfully, but these errors were encountered: