Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Assets manifest location does not honor prefix #2776

Closed
rhulse opened this Issue · 2 comments

3 participants

@rhulse

When using a different prefix (in my case '/x'), the assets manifest is still created in /assets. This appears to be because @assets.manifest is set during Rails initialization, then on line 24 of assets.rake an assignment is made:

target = Pathname.new(File.join(Rails.public_path, config.assets.prefix))
manifest = {}
manifest_path = config.assets.manifest || target

but target will never be used (unless manifest set to false).

The expected behavior is that manifest path follow prefix path by default.

@guilleiguaran

Thanks, I had fixed this and will send a pull request

@rhulse

Cool. Anyone who wants to stay on the 3.1.0 Gem can workaround this in their production.rb:

# TODO: Remove this with next stable release
config.assets.manifest = false
@spastorino spastorino closed this in a4b7363
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.