ahawkins / cashier

Tag based caching for Rails using Redis. Associate different cached content with a tag, then expire by tag instead of key.
MIT License
162 stars 39 forks source link

NoMethodError (undefined method `current_user' for #<MyController...>) #8

Open Arthaey opened 12 years ago

Arthaey commented 12 years ago

In application.rb, I define a "current_user" method, which is necessary for how I do authentication (SimplestAuth) & authorization (declarative_authorization).

When I add cashier to my Gemfile and run bundle install, suddenly I start getting 500's and a NoMethodError for current_user. Reverting the Gemfile and removing the vendored cashier gem — and making no other changes — makes the NoMethodError go away again.

joeytheman commented 12 years ago

I am experiencing the same issue with random NameError or NoMethodError errors for methods that run in a before_filter after installing the Cashier gem. I am using Rails 3.2.6 and Ruby 1.9.3.