Security Update for Spree Finding Nil for Money:Class
Asked Answered
B

3

9

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

Belize answered 31/3, 2014 at 20:17 Comment(0)
W
16

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.

Wherein answered 31/3, 2014 at 21:22 Comment(0)
E
3

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.

Effervesce answered 31/3, 2014 at 21:21 Comment(0)
E
1

Answer provided by John worked for me. However, I also had to edit the Gemfile with TextMate (or your own text editor) to make sure the single quotes are correct, as explained in this post: Gem syntax error questions

Eckel answered 10/4, 2014 at 0:43 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.