undefined method `assets' for #<Rails::Application::Configuration:...> #23

Closed
yossibeck opened this Issue Mar 21, 2012 · 2 comments

Comments

Projects
None yet
2 participants

From what I take, asset pipeline wasn't included until rails 3.1, this leads to a break on line #32:

def current_provider
  return config.roadie.provider if config.roadie.provider

  if config.assets.enabled ############# line 32 ##########
    AssetPipelineProvider.new
  else
    FilesystemProvider.new
  end
end

I changed it to:
if config.respond_to?(:assets) && config.assets.enabled

which solves my problem, but really .. the dependencies are broken :(

Owner

Mange commented Mar 21, 2012

Ouch, you're absolutely right.

Owner

Mange commented Mar 22, 2012

I just released 2.3.1 that should fix this problem. Sorry it took so long!

@Mange Mange closed this Apr 23, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment