Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Put clearance on lockdown when in maintenance mode

  • Loading branch information...
commit 9918aba10594fbffe1251fad003e521582d4dcd4 1 parent 2557618
@qrush qrush authored
Showing with 5 additions and 3 deletions.
  1. +1 −1  Gemfile
  2. +4 −2 config/initializers/clearance.rb
View
2  Gemfile
@@ -6,7 +6,6 @@ gem 'rails', '~> 3.2.7'
gem 'airbrake'
gem 'builder', '> 3.0.1'
gem 'bluepill'
-gem 'clearance', '~> 0.16'
gem 'dynamic_form'
gem 'excon'
gem 'fog', '~> 1.4.0'
@@ -63,6 +62,7 @@ end
# For some reason, including these gems in the maintenance environment enables
# maintenance mode
group :development, :test, :staging, :production do
+ gem 'clearance', '~> 0.16'
gem 'daemons'
gem 'delayed_job'
gem 'delayed_job_active_record'
View
6 config/initializers/clearance.rb
@@ -1,3 +1,5 @@
-Clearance.configure do |config|
- config.mailer_sender = "donotreply@rubygems.org"
+unless Rails.env.maintenance?
+ Clearance.configure do |config|
+ config.mailer_sender = "donotreply@rubygems.org"
+ end
end
Please sign in to comment.
Something went wrong with that request. Please try again.