<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -243,7 +243,7 @@ module HasImage
     end
 
     def image_size
-      [width, height] * 'x'
+      self[:image_size] || [width, height].join('x')
     end
 
     # Deletes the image from the storage.
@@ -300,7 +300,7 @@ module HasImage
       send(&quot;#{has_image_options[:column]}=&quot;, storage.install_images(self))
       self[:width] = storage.measure(absolute_path, :width) if self.class.column_names.include?('width')
       self[:height] = storage.measure(absolute_path, :height) if self.class.column_names.include?('height')
-      self[:dimensions] = [storage.measure(absolute_path, :width), storage.measure(absolute_path, :height)].join('x') if self.class.column_names.include?('dimensions')
+      self[:image_size] = [storage.measure(absolute_path, :width), storage.measure(absolute_path, :height)].join('x') if self.class.column_names.include?('image_size')
       save!
     end
 
@@ -325,4 +325,4 @@ end
 
 if defined?(Rails) and defined?(ActiveRecord) and defined?(ActionController)
   HasImage.enable
-end
\ No newline at end of file
+end</diff>
      <filename>lib/has_image.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,9 +1,9 @@
 module HasImage
-  
+
   # Some helpers to make working with HasImage models in views a little
   # easier.
   module ViewHelpers
-  
+
     # Wraps the image_tag helper from Rails. Instead of passing the path to
     # an image, you can pass any object that uses HasImage. The options can
     # include the name of one of your thumbnails, for example:
@@ -31,9 +31,9 @@ module HasImage
           options[:size] = size if size =~ /\A[\d]*x[\d]*\Z/
         end
       end
-  	  image_tag(object.public_path(thumb), options)
+      image_tag(object.public_path(thumb), options)
     end
-  
+
   end
 
-end
\ No newline at end of file
+end</diff>
      <filename>lib/has_image/view_helpers.rb</filename>
    </modified>
    <modified>
      <diff>@@ -27,9 +27,9 @@ class ComplexPicTest &lt; Test::Unit::TestCase
     assert_equal 1990, @pic[:height]
   end
 
-  def test_should_save_dimensions_to_db_on_create
+  def test_should_save_image_size_to_db_on_create
     @pic = ComplexPic.create!(:image_data =&gt; fixture_file_upload(&quot;/image.jpg&quot;, &quot;image/jpeg&quot;))
-    assert_equal '1916x1990', @pic[:dimensions]
+    assert_equal '1916x1990', @pic[:image_size]
   end
 
   def test_should_use_value_from_db_in_height_reader</diff>
      <filename>test_rails/complex_pic_test.rb</filename>
    </modified>
    <modified>
      <diff>@@ -150,4 +150,4 @@ class PicTest &lt; Test::Unit::TestCase
     assert_equal 1990, pic.height
   end
 
-end
\ No newline at end of file
+end</diff>
      <filename>test_rails/pic_test.rb</filename>
    </modified>
    <modified>
      <diff>@@ -9,7 +9,7 @@ ActiveRecord::Schema.define(:version =&gt; 1) do
   create_table 'complex_pics', :force =&gt; true do |t|
     t.string :filename
     t.integer :width, :height
-    t.string :dimensions
+    t.string :image_size
     t.timestamps
   end
 </diff>
      <filename>test_rails/schema.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>8fef51a505629280a60d1867b8de674bbe4f75d6</id>
    </parent>
  </parents>
  <author>
    <name>Adrian Mugnolo</name>
    <email>adrian@mugnolo.com</email>
  </author>
  <url>http://github.com/norman/has_image/commit/56899674dc40372d7280124c934186ef6352475e</url>
  <id>56899674dc40372d7280124c934186ef6352475e</id>
  <committed-date>2008-12-18T10:56:26-08:00</committed-date>
  <authored-date>2008-12-18T10:56:26-08:00</authored-date>
  <message>Renamed dimensions magic column to image_size.</message>
  <tree>197043efdb09ad8727fce3ca5be83c970fbdf09b</tree>
  <committer>
    <name>Adrian Mugnolo</name>
    <email>adrian@mugnolo.com</email>
  </committer>
</commit>
