Sha256: 91977b45a865d7e4c140cfdba9c7c227644fcf4e84090a6ac6181650668e648a

Contents?: true

Size: 217 Bytes

Versions: 4

Compression:

Stored size: 217 Bytes

Contents

class PostFile < ActiveRecord::Base
  include Carnival::ModelHelper

  belongs_to :post
  has_attached_file :file, :default_url => "missing.png"

  validates_attachment :file, :size => { :in => 0..10.kilobytes }

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
carnival-0.1.3 test/carnival-sample-application/app/models/post_file.rb
carnival-0.1.2 test/carnival-sample-application/app/models/post_file.rb
carnival-0.1.1 test/carnival-sample-application/app/models/post_file.rb
carnival-0.1.0 test/carnival-sample-application/app/models/post_file.rb