<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -3,6 +3,8 @@ puts &quot;# include_google_js plugin                             #&quot;
 puts &quot;# Configuration                                        #&quot;
 puts &quot;########################################################&quot;
 puts &quot;&quot;
-puts &quot;Add&quot; 
-puts &quot;IncludeGoogleJs::Config.include_google_js = true&quot;
-puts &quot;to environment.rb to use Google's copies of Prototype and Script.aculo.us.&quot;
\ No newline at end of file
+puts &quot;Add&quot;
+puts &quot;&quot;
+puts &quot;:include_google_js =&gt; true&quot;
+puts &quot;&quot;
+puts &quot;to javascript_include_tag to use Google's copies of Prototype and Script.aculo.us.&quot;
\ No newline at end of file</diff>
      <filename>install.rb</filename>
    </modified>
    <modified>
      <diff>@@ -2,20 +2,15 @@ module IncludeGoogleJs
   
   @@javascript_expansions = { :defaults =&gt; ActionView::Helpers::AssetTagHelper::JAVASCRIPT_DEFAULT_SOURCES.dup }
   
-  module Config
-    mattr_accessor :include_google_js
-  end
-  
-  IncludeGoogleJs::Config.include_google_js ||= true
-  
   def self.included(base) 
     base.alias_method_chain :javascript_include_tag, :google_js
     base.alias_method_chain :expand_javascript_sources, :google_js
   end
   
   def javascript_include_tag_with_google_js(*sources)
-    options = sources.extract_options!.stringify_keys
-    cache   = options.delete(&quot;cache&quot;)
+    options             = sources.extract_options!.stringify_keys
+    cache               = options.delete(&quot;cache&quot;)
+    @include_google_js = options.delete(&quot;include_google_js&quot;)
 
     if ActionController::Base.perform_caching &amp;&amp; cache
       joined_javascript_name = (cache == true ? &quot;all&quot; : cache) + &quot;.js&quot;
@@ -32,7 +27,7 @@ module IncludeGoogleJs
           google.load(&quot;scriptaculous&quot;, &quot;1&quot;);
         &lt;/script&gt;
         #{html}
-        } if IncludeGoogleJs::Config.include_google_js &amp;&amp; (sources.include?(:defaults) || sources.include?(:all))
+        } if @include_google_js &amp;&amp; (sources.include?(:defaults) || sources.include?(:all))
         return html
     end
   end
@@ -40,7 +35,7 @@ module IncludeGoogleJs
   def expand_javascript_sources_with_google_js(sources)
     if sources.include?(:all)
       all_javascript_files = Dir[File.join(ActionView::Helpers::AssetTagHelper::JAVASCRIPTS_DIR, '*.js')].collect { |file| File.basename(file).gsub(/\.\w+$/, '') }.sort
-      if IncludeGoogleJs::Config.include_google_js
+      if @include_google_js
         ActionView::Helpers::AssetTagHelper::JAVASCRIPT_DEFAULT_SOURCES.each do |file|
           all_javascript_files.delete(file)
         end
@@ -50,7 +45,7 @@ module IncludeGoogleJs
       expanded_sources = []
       expanded_sources = sources.collect do |source|
         determine_source(source, @@javascript_expansions)
-      end.flatten unless IncludeGoogleJs::Config.include_google_js &amp;&amp; sources.include?(:defaults)
+      end.flatten unless @include_google_js &amp;&amp; sources.include?(:defaults)
       expanded_sources &lt;&lt; &quot;application&quot; if sources.include?(:defaults) &amp;&amp; file_exist?(File.join(ActionView::Helpers::AssetTagHelper::JAVASCRIPTS_DIR, &quot;application.js&quot;))
       expanded_sources
     end</diff>
      <filename>lib/include_google_js.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>17acb3d50dd49bf83b098ad0ef7cf928d236c0a2</id>
    </parent>
  </parents>
  <author>
    <name>Christopher D Warren</name>
    <email>chris@expectless.com</email>
  </author>
  <url>http://github.com/chriswarren/include_google_js/commit/abd7319eef16c871552f0da77a235bde003283b0</url>
  <id>abd7319eef16c871552f0da77a235bde003283b0</id>
  <committed-date>2008-06-03T14:33:17-07:00</committed-date>
  <authored-date>2008-06-03T14:33:17-07:00</authored-date>
  <message>Dropped the environment.rb flag, using puts :include_google_js =&gt; true as an option on javascript_include_tag instead.</message>
  <tree>5d445186f37ff171d17513a443263e1c576665fa</tree>
  <committer>
    <name>Christopher D Warren</name>
    <email>chris@expectless.com</email>
  </committer>
</commit>
