metaskills / less-rails

:-1: :train: Less.js For Rails

Home Page:http://github.com/metaskills/less-rails

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

less-rails breaks if there is no less-specific config set

ajm188 opened this issue · comments

Just bumped to rails 4.2.3, and now getting errors like:
screen shot 2015-08-09 at 4 39 06 pm

I think this is coming from the config_from_rails method, which currently expects a config.less to have appeared somewhere in the application.

I think it should updated from
scope.environment.context_class.less_config
to
scope.environment.context_class.less_config || {}

Actually, this looks it's caused from something else. If I add puts Rails.application.config.less in one of my initializers, I see:
{:paths => ["/path/1", "/path/2"], :compress => nil}

So it looks like the config_from_rails is not loading the config correctly for rails 4.2.3

bundle update less-rails solved it. disregard!