<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,10 +1,5 @@
 class ClippingImage &lt; Asset
-  has_attachment  :content_type =&gt; :image,
-    :storage =&gt; :s3, 
-    :max_size =&gt; 3.megabytes,
-    :resize_to  =&gt; &quot;465&gt;&quot;,
-    :path_prefix =&gt; &quot;assets&quot;, 
-    :thumbnails =&gt; { :thumb =&gt; &quot;100x100!&quot;, :medium_square =&gt; '200x200!', :medium =&gt; &quot;200&gt;&quot; }
-
+  has_attachment prepare_options_for_attachment_fu(AppConfig.clipping['attachment_fu_options'])
+  
   validates_as_attachment
 end
\ No newline at end of file</diff>
      <filename>app/models/clipping_image.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,9 +1,5 @@
 class HomepageFeature &lt; ActiveRecord::Base  
-  has_attachment  :storage =&gt; :s3, 
-    :min_size         =&gt; 1,
-    :max_size         =&gt; 1.megabytes,
-    :content_type =&gt; ['image/jpg', 'image/jpeg', 'image/pjpeg', 'image/gif', 'image/png', 'image/x-png'],
-    :thumbnails =&gt; AppConfig.feature['thumbs']
+  has_attachment prepare_options_for_attachment_fu(AppConfig.feature['attachment_fu_options'])
 
   validates_presence_of
   validates_presence_of :content_type</diff>
      <filename>app/models/homepage_feature.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,10 +1,7 @@
 class Photo &lt; ActiveRecord::Base
   acts_as_commentable
-
-  attachment_fu_options = AppConfig.photo['attachment_fu_options']
-  attachment_fu_options = attachment_fu_options.symbolize_keys.merge({:storage =&gt; attachment_fu_options['storage'].to_sym, :max_size =&gt; attachment_fu_options['max_size'].to_i.megabytes })
   
-  has_attachment attachment_fu_options
+  has_attachment prepare_options_for_attachment_fu(AppConfig.photo['attachment_fu_options'])
 
   acts_as_taggable
 </diff>
      <filename>app/models/photo.rb</filename>
    </modified>
    <modified>
      <diff>@@ -70,9 +70,11 @@ Object.extend(Object.extend(Glider.prototype, Abstract.prototype), {
       var nextIndex = (this.sections.length - 1 == currentIndex) ? 0 : currentIndex + 1;      
     } else var nextIndex = 1;
 
-    this.moveTo(this.sections[nextIndex], this.scroller, { 
-      duration: this.options.duration
-    });
+		if(this.sections.length &gt; 1){
+	    this.moveTo(this.sections[nextIndex], this.scroller, { 
+	      duration: this.options.duration
+	    });			
+		}
   },
 	
   previous: function(){</diff>
      <filename>assets/javascripts/glider.js</filename>
    </modified>
    <modified>
      <diff>@@ -4,6 +4,9 @@ community_description:  &quot;The Best Place for People Who Love Communities&quot;
 support_email:  &quot;support@community.com&quot;
 meta_description: 'A description of your community for use in META tags.'
 meta_keywords: 'keywords for use in META tags'
+sections_enabled: ['photos', 'posts', 'clippings', 'contests', 'categories', 'events']
+show_advertising: false
+closed_beta_mode: false
 
 # The label you use for 'staff' writers (featured writer, staff, pro, etc.)
 featured_writer_label: 'Featured Writer'
@@ -22,10 +25,21 @@ photo:
     content_type: ['image/jpg', 'image/jpeg', 'image/pjpeg', 'image/gif', 'image/png', 'image/x-png']
       
 feature:
-  thumbs: {thumb: [45,45], large: [635,150]}
   use_thumbs: false
   dimensions: [150, 635]
-sections_enabled: ['photos', 'posts', 'clippings', 'contests', 'categories', 'events']
-show_advertising: false
-closed_beta_mode: false
-
+  attachment_fu_options:
+    resize_to: &quot;465&gt;&quot;
+    min_size: 1    
+    max_size: 1
+    thumbnails: {thumb: '45x45!', large: '635x150!'}    
+    storage: 'file_system'
+    content_type: ['image/jpg', 'image/jpeg', 'image/pjpeg', 'image/gif', 'image/png', 'image/x-png']
+        
+clipping:
+  attachment_fu_options:
+    resize_to: &quot;465&gt;&quot;
+    min_size: 1    
+    max_size: 3
+    thumbnails: {thumb: &quot;100x100!&quot;, medium_square: &quot;200x200!&quot;, medium: &quot;200&gt;&quot;}
+    storage: 'file_system'
+    content_type: ['image/jpg', 'image/jpeg', 'image/pjpeg', 'image/gif', 'image/png', 'image/x-png']
\ No newline at end of file</diff>
      <filename>engine_config/application.yml</filename>
    </modified>
    <modified>
      <diff>@@ -1,3 +1,4 @@
+require 'community_engine'
 require 's3_cache_control'
 
 Module.class_eval do</diff>
      <filename>init.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1 +1,13 @@
-# CommunityEngine
\ No newline at end of file
+# CommunityEngine
+module CommunityEngine
+  module ActiveRecordExtensions
+
+    def prepare_options_for_attachment_fu(options)
+      attachment_fu_options = options.symbolize_keys.merge({:storage =&gt; options['storage'].to_sym, 
+          :max_size =&gt; options['max_size'].to_i.megabytes})  
+    end  
+    
+  end  
+end
+
+ActiveRecord::Base.send(:extend, CommunityEngine::ActiveRecordExtensions)</diff>
      <filename>lib/community_engine.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>1353701f35da7de5e4474123c95c2c5819c7b9ff</id>
    </parent>
  </parents>
  <author>
    <name>Bruno Bornsztein</name>
    <email>bruno@otis.local</email>
  </author>
  <url>http://github.com/bborn/communityengine/commit/f0993287c4839052d89ae74eaa0ad504ab460aa6</url>
  <id>f0993287c4839052d89ae74eaa0ad504ab460aa6</id>
  <committed-date>2008-03-30T19:12:27-07:00</committed-date>
  <authored-date>2008-03-30T19:12:27-07:00</authored-date>
  <message>updating clipping image and hompage_feature to use filesystem backend as default</message>
  <tree>6d5e47fc4825753c7c81299d48eb83b656d73e0f</tree>
  <committer>
    <name>Bruno Bornsztein</name>
    <email>bruno@otis.local</email>
  </committer>
</commit>
