Sha256: 234d2e0d984777fc798ab4746d8aabd82a9ad93cfce66752de9d7405b9e080b1

Contents?: true

Size: 363 Bytes

Versions: 6

Compression:

Stored size: 363 Bytes

Contents

class User < ActiveRecord::Base
  include Headstart::User
  
  # If we don't want the originals, add , :original => "1x1"
  has_attached_file :avatar, :styles => { :thumb => "50x50#", :mid => "200x300" }, :storage => :s3, :s3_credentials => "#{RAILS_ROOT}/config/s3.yml", 
       :path => ":class/:id/:style.:extension", :default_url => "/images/missing.jpg"
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
headstart-0.11.2 generators/headstart/templates/user.rb
headstart-0.11.1 generators/headstart/templates/user.rb
headstart-0.9.2 generators/headstart/templates/user.rb
headstart-0.9.1 generators/headstart/templates/user.rb
headstart-0.9.0 generators/headstart/templates/user.rb
headstart-0.8.0 generators/headstart/templates/user.rb