Permalink
Browse files

Try and fix Devise for Cedar.

  • Loading branch information...
1 parent 275f60a commit 4afd6ce7aa6adcaaddc206e592b41a8d151a4635 @devilshaircut committed Apr 12, 2012
Showing with 10 additions and 2 deletions.
  1. +0 −2 config/application.rb
  2. +10 −0 config/routes.rb
View
@@ -1,7 +1,5 @@
require File.expand_path('../boot', __FILE__)
-config.assets.initialize_on_precompile = false
-
require 'rails/all'
if defined?(Bundler)
View
@@ -1,5 +1,15 @@
Reactiongifs::Application.routes.draw do
+ # The ActiveAdmin routes cause Rails to set up a connection to the
+ # production database, which isn't available during
+ # assets:precompile on Heroku, so the following unless block skips
+ # setting up these routes only when rake assets:precompile is
+ # being run.
+ #
+ # Could be a problem if the assets needed these to be loaded to
+ # compile properly; pretty sure they don't.
+ break if ARGV.join.include? 'assets:precompile'
+
devise_for :users,
:path => "users",
:path_names => {

0 comments on commit 4afd6ce

Please sign in to comment.