Skip to content
This repository has been archived by the owner on Mar 27, 2023. It is now read-only.

Commit

Permalink
Allow custom addition of google verification page
Browse files Browse the repository at this point in the history
  • Loading branch information
osahyoun committed Jul 18, 2016
1 parent e96d3e1 commit f0c0515
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
9 changes: 7 additions & 2 deletions config/routes.rb
@@ -1,7 +1,12 @@
Rails.application.routes.draw do

if Settings.google_verification
match "/#{Settings.google_verification}.html", to: proc { |env| [200, {}, ["google-site-verification: #{Settings.google_verification}.html"]] }, via: :get
end

ActiveAdmin.routes(self)
# We remove the sign_up path name so as not to allow users to sign in with username and password.
devise_for :users, :controllers => { :omniauth_callbacks => "omniauth_callbacks" }, path_names: { sign_up: ''}

devise_for :users, controllers: { omniauth_callbacks: "omniauth_callbacks" }

root to: 'home#index'

Expand Down
8 changes: 7 additions & 1 deletion config/settings/production.yml
Expand Up @@ -84,10 +84,16 @@ host: <%= ENV["CHAMPAIGN_PAGE_HOST"] %>
# Google Analytics Tracking Code
ga_tracking_code: <%= ENV['GA_TRACKING_CODE'] %>

# Google Verification Page
google_verification: <%= ENV['GOOGLE_VERIFICATION_CODE'] %>


gocardless:
token: <%= ENV['GOCARDLESS_TOKEN'] %>
environment: <%= ENV['GOCARDLESS_ENVIRONMENT'] %>
gbp_charge_day: 20
secret: <%= ENV['GOCARDLESS_SECRET'] %>

home_page_url: <%= ENV['HOME_PAGE_URL'] %>
home_page_url: <%= ENV['HOME_PAGE_URL'] %>


0 comments on commit f0c0515

Please sign in to comment.