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

有帮助吗?

解决方案

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.

其他提示

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.

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

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top