X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/a6c36b9133b27275ca5e7c45bc86e33def6fe908..f2150a94cf2eb0d518a19769fc7582ea50a5f67b:/app/models/user.rb diff --git a/app/models/user.rb b/app/models/user.rb index 1f8d326d5..9a230898a 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -44,9 +44,9 @@ class User < ActiveRecord::Base after_initialize :set_creation_time before_save :encrypt_password - has_attached_file :image, :styles => { :thumb => "100x100>" }, - :path => "#{ATTACHMENTS_DIR}/user/image/:id/:filename", - :url => "/user/image/:id/:filename" + has_attached_file :image, + :default_url => "/assets/:class/:attachment/:style.png", + :styles => { :large => "100x100>", :small => "50x50>" } def self.authenticate(options) if options[:username] and options[:password]