lib/generators/under_construction/constants.rb in under_construction-0.1.3 vs lib/generators/under_construction/constants.rb in under_construction-0.1.4
- old
+ new
@@ -5,10 +5,10 @@
# Editing UnderConstruction block causes it's clear generator to not work
before_filter :redirect_to_under_construction
# Will redirect all requests to under construction page
def redirect_to_under_construction
- if request.host_with_port == UnderConstruction.config.host_name && Rails.env.production?
+ if request.host_with_port == UnderConstruction.config.host_name
unless request.url =~ /(under_construction|email_storage)/
redirect_to under_construction_index_path
end
end
end