]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/user.rb
Get the user image right this time...
[rails.git] / app / models / user.rb
index 4eba73a9f9aa12d7b0666a5f51353b5f584798b7..61c76898a0f2b754eab98e7c257145ed33289e2b 100644 (file)
@@ -25,6 +25,8 @@ class User < ActiveRecord::Base
 
   before_save :encrypt_password
 
 
   before_save :encrypt_password
 
+  file_column :image, :magick => { :geometry => "100x100>" }
+
   def after_initialize
     self.creation_time = Time.now if self.creation_time.nil?
   end
   def after_initialize
     self.creation_time = Time.now if self.creation_time.nil?
   end