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