RailsApps/rails-stripe-membership-saas — pull request #40 by tulbox (2012-12-13 19:21:03+00:00)
Title: Fix for issue #29

Fix issue #29 where rake assets:precompile fails in heroku deployment due to mixing in config vars in registrations.js.erb which are not available during the slug compilation process.

See https://devcenter.heroku.com/articles/rails3x-asset-pipeline-cedar#the-asset-pipeline

> The app’s config vars are not available in the environment during the slug compilation process. Because the app must be loaded to run the assets:precompile task, any initialization code that requires existence of config vars should gracefully handle the nil case.