Sha256: 9c311ad86f5d6f742466602a1f8d2431c2087e685c3feb81d52d85c17e541e2e

Contents?: true

Size: 357 Bytes

Versions: 5

Compression:

Stored size: 357 Bytes

Contents

class Profile < ActiveRecord::Base
  acts_as_tagger
  belongs_to :user
  validates_uniqueness_of :alias
  validates :phone, :phone=>true
  has_attached_file :image,
      :storage => :s3,
      :s3_credentials => "#{Rails.root}/config/amazon_s3.yml",
      :path => "/:style/:filename",
      :styles => { :medium => "300x300>", :thumb => "100x100>" }
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
wheels-0.1.20 app/models/profile.rb
wheels-0.1.19 app/models/profile.rb
wheels-0.1.18 app/models/profile.rb
wheels-0.1.17 app/models/profile.rb
wheels-0.1.16 app/models/profile.rb