Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Security Update for Spree Finding Nil for Money:Class

This security update for spree just released, but after running some Cucumber tests, I had this recurring issue:

undefined method `assume_from_symbol' for Money:Class (ActionView::Template::Error)

I searched the project repo on GH and we don't use the method. Searched the Money repo and also no findings. Searched Spree and found this. The method appears to be undefined on my development environment.

I don't know if its Spree or the project I'm dealing with. Does anyone know how to fix this?

Update: When I run bundle exec zeus cucumber I don't get these errors...

like image 867
BenMorganIO Avatar asked Mar 31 '14 20:03

BenMorganIO


2 Answers

Just had this issue, followed the advice in: https://github.com/spree/spree/issues/4517

IE: add this to your Gemfile

gem 'money', '6.0.1'

fixed my issue.

like image 174
John Hirbour Avatar answered Nov 16 '22 03:11

John Hirbour


I believe this is a bug in Spree:

https://github.com/spree/spree/issues/4517

You should specify the following in your Gemfile:

gem 'money', '=6.0.1'

to work around the issue for now.

like image 43
gmacdougall Avatar answered Nov 16 '22 02:11

gmacdougall