X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/914cad0aa2fac3c70176230ad56d9a6e25477e8c..4ebf47b73434961a84b81af3db65159b29054070:/app/models/user.rb?ds=sidebyside diff --git a/app/models/user.rb b/app/models/user.rb index 4eba73a9f..61c76898a 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -25,6 +25,8 @@ class User < ActiveRecord::Base before_save :encrypt_password + file_column :image, :magick => { :geometry => "100x100>" } + def after_initialize self.creation_time = Time.now if self.creation_time.nil? end