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

Read options from Rails app configuration in Railtie #31

Merged
merged 2 commits into from
Feb 5, 2014

Conversation

bencrouse
Copy link

I wanted to disable pngout for the asset pipeline in a particular Rails env, but there wasn't a good way (from the app repo) to do this. It seemed sensible to allow settings at the app or env level so I could do something like:

config.assets.image_optim = { pngout: false }

Also allows for simple case of:

config.assets.image_optim = true

toy added a commit that referenced this pull request Feb 5, 2014
Set options using `config.assets.image_optim = {}`
@toy toy merged commit 253b610 into toy:master Feb 5, 2014
@toy
Copy link
Owner

toy commented Feb 5, 2014

Thanks!
I wonder when will support for config like config.assets.image_optim.pngout = false be requested.

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

Successfully merging this pull request may close these issues.

2 participants