From 593ad6093e40e29204ae0eaf3a15b2ea13b4034c Mon Sep 17 00:00:00 2001 From: jcwimer Date: Tue, 19 Jan 2016 02:50:02 +0000 Subject: [PATCH] Fixed if rails env for ads --- app/views/static_pages/not_allowed.html.erb | 2 +- app/views/tournaments/bracket.html.erb | 2 +- app/views/tournaments/no_matches.html.erb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/views/static_pages/not_allowed.html.erb b/app/views/static_pages/not_allowed.html.erb index 2cc6859..649cf1e 100644 --- a/app/views/static_pages/not_allowed.html.erb +++ b/app/views/static_pages/not_allowed.html.erb @@ -1,4 +1,4 @@ -<% Rails.env.production? %> +<% if Rails.env.production? %> <% end %> You do not have permissions to go there. diff --git a/app/views/tournaments/bracket.html.erb b/app/views/tournaments/bracket.html.erb index 90d537d..43d6433 100644 --- a/app/views/tournaments/bracket.html.erb +++ b/app/views/tournaments/bracket.html.erb @@ -1,4 +1,4 @@ -<% Rails.env.production? %> +<% if Rails.env.production? %> <% end %> <% cache ["brackets", @weight] do %> diff --git a/app/views/tournaments/no_matches.html.erb b/app/views/tournaments/no_matches.html.erb index 0f35252..8b6a0a3 100644 --- a/app/views/tournaments/no_matches.html.erb +++ b/app/views/tournaments/no_matches.html.erb @@ -1,4 +1,4 @@ -<% Rails.env.production? %> +<% if Rails.env.production? %> <% end %> <%= link_to "Back to #{@tournament.name}", "/tournaments/#{@tournament.id}", :class=>"btn btn-default" %>