Skip to content

Instantly share code, notes, and snippets.

View joshed-io's full-sized avatar

Josh Dzielak joshed-io

View GitHub Profile
@joshed-io
joshed-io / assets.rake
Created March 24, 2012 00:21 — forked from mulder/assets.rake
Monkey Patch for assets:precomple for deploying on Heroku with Mongoid
# This version worked for me.
namespace :assets do
# Prepend the assets:prepare task to assets:precompile through
# assets:environment
task :environment => :prepare
task :prepare do
# Flag for custom initializers to know we're precompiling assets
ENV["RAILS_ASSETS_PRECOMPILE"] = "true"