Breaking when updated to 4.1.4 and Uber 0.1.0
Opened this issue · 3 comments
mrbongiolo commented
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 commented
yup, had to downgrade uber
to 0.0.15
dreyks commented
this is still an issue for cells@v4.1.5
dreyks commented
the workaround is
Uber::Options.class_eval do
alias_method :call, :evaluate
end