Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Breaking when updated to 4.1.4 and Uber 0.1.0 #440

Open
mrbongiolo opened this issue Nov 25, 2016 · 3 comments
Open

Breaking when updated to 4.1.4 and Uber 0.1.0 #440

mrbongiolo opened this issue Nov 25, 2016 · 3 comments

Comments

@mrbongiolo
Copy link

mrbongiolo commented Nov 25, 2016

Just updated both gems and the production env is broken with this message:

NoMethodError (undefined method `call' for {}:Uber::Options):

# Stack
uber (0.1.0) lib/uber/options.rb:25:in `eval'
cells (4.1.4) lib/cell/caching.rb:50:in `render_state'
cells (4.1.4) lib/cell/view_model.rb:78:in `call'
cells-rails (0.0.6) lib/cell/rails.rb:54:in `call'
cells (4.1.4) lib/cell/layout.rb:43:in `call'
app/cells/pages/home/show.slim:2:in `block in singleton class'
app/cells/pages/home/show.slim:-2:in `instance_eval'
app/cells/pages/home/show.slim:-2:in `singleton class'
app/cells/pages/home/show.slim:-4:in `__tilt_47214553527740'

This only happens when using cache on the cell and having Rails with caching enabled.

So it seems to be something in cells/caching.rb, it's using the old Uber::Options::Value I guess, but I'm not sure.

@dreyks
Copy link

dreyks commented Nov 29, 2016

yup, had to downgrade uber to 0.0.15

@dreyks
Copy link

dreyks commented Dec 26, 2016

this is still an issue for [email protected]

@dreyks
Copy link

dreyks commented Dec 26, 2016

the workaround is

Uber::Options.class_eval do
  alias_method :call, :evaluate
end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants