class Avatar < ActiveRecord::Base
  .
  .
  .
  # Katalogi obrazw
  if ENV["RAILS_ENV"] == "test"
    URL_STUB = DIRECTORY = "tmp"  
  else
    URL_STUB = "/images/avatars"
    DIRECTORY = File.join("public", "images", "avatars")
  end
  .
  .
  .

