Sha256: 4e2c399bbca05173c80b1782a1624c331de485306e0efa28bbf96f814b6883dd

Contents?: true

Size: 308 Bytes

Versions: 13

Compression:

Stored size: 308 Bytes

Contents

class Profile < ActiveRecord::Base
  belongs_to :user
  validates_uniqueness_of :alias
  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

13 entries across 13 versions & 1 rubygems

Version Path
wheels-0.0.17 app/models/profile.rb
wheels-0.0.16 app/models/profile.rb
wheels-0.0.15 app/models/profile.rb
wheels-0.0.14 app/models/profile.rb
wheels-0.0.13 app/models/profile.rb
wheels-0.0.11 app/models/profile.rb
wheels-0.0.10 app/models/profile.rb
wheels-0.0.9 app/models/profile.rb
wheels-0.0.8 app/models/profile.rb
wheels-0.0.6 app/models/profile.rb
wheels-0.0.5 app/models/profile.rb
wheels-0.0.4 app/models/profile.rb
wheels-0.0.3 app/models/profile.rb