myexperiment-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[myexperiment-hackers] [3749] trunk: added Google site verification code


From: noreply
Subject: [myexperiment-hackers] [3749] trunk: added Google site verification code to settings file
Date: Tue, 8 Oct 2013 13:42:11 +0000 (UTC)

Revision
3749
Author
dgc
Date
2013-10-08 13:42:10 +0000 (Tue, 08 Oct 2013)

Log Message

added Google site verification code to settings file

Modified Paths

Diff

Modified: trunk/app/views/layouts/_myexperiment.html.erb (3748 => 3749)


--- trunk/app/views/layouts/_myexperiment.html.erb	2013-10-08 13:27:05 UTC (rev 3748)
+++ trunk/app/views/layouts/_myexperiment.html.erb	2013-10-08 13:42:10 UTC (rev 3749)
@@ -4,6 +4,9 @@
 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
 <head>
   <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
+  <% unless Conf.google_site_verification.nil? %>
+  <meta name="google-site-verification" content="<%= Conf.google_site_verification -%>" />
+  <% end %>
   <%= t :site => "#{Conf.sitename} &#45; #{controller_visible_name(controller.controller_name.humanize)}", :separator => "&#45;" %>
   <% if @lod_rdf %><link rel="alternate" href="" @lod_rdf -%>" type="application/rdf+xml" title="RDF+XML" /><% end %>
   <% if @lod_xml %><link rel="alternate" href="" @lod_xml -%>" type="application/xml" title="REST XML" /><% end %>

Modified: trunk/config/default_settings.yml (3748 => 3749)


--- trunk/config/default_settings.yml	2013-10-08 13:27:05 UTC (rev 3748)
+++ trunk/config/default_settings.yml	2013-10-08 13:42:10 UTC (rev 3749)
@@ -339,6 +339,11 @@
 
 cookie_verifier_secret: 64a59b43e7aa93e55a5db119180a2973b584555f71e87388de5c27682407987446a0293dab64f5913cb19ead617893546b3646c98672905a38e6dfbfb5871034
 
+# google_site_verification - Use this to insert a Google site verification code
+#                            into the headers.
+
+google_site_verification:
+
 # google_web_analytics - Enable this to enable Google web analytics.
 
 google_web_analytics:

Modified: trunk/lib/conf.rb (3748 => 3749)


--- trunk/lib/conf.rb	2013-10-08 13:27:05 UTC (rev 3748)
+++ trunk/lib/conf.rb	2013-10-08 13:42:10 UTC (rev 3749)
@@ -218,6 +218,14 @@
     self.fetch_entry('expanded_filter_size')
   end
 
+  def self.method_missing(method)
+    if @defaults.has_key?(method.to_s)
+      fetch_entry(method.to_s)
+    else
+      super
+    end
+  end
+
   # This method is required to create an administrator in the test fixtures
 
   def self.admins=(value)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]