Sha256: 8f5cfd93b544719f1e64b267b30c8b30c4ecb3d4bdfec5ad29001cb72df4f285
Contents?: true
Size: 1008 Bytes
Versions: 8
Compression:
Stored size: 1008 Bytes
Contents
# == Schema Information # # Table name: uploads # # id :integer not null, primary key # creator_id :integer # name :string(255) # caption :string(1000) # description :text # is_public :boolean default(TRUE) # uploadable_id :integer # uploadable_type :string(255) # width :string(255) # height :string(255) # local_file_name :string(255) # local_content_type :string(255) # local_file_size :integer # local_updated_at :datetime # remote_file_name :string(255) # remote_content_type :string(255) # remote_file_size :integer # remote_updated_at :datetime # created_at :datetime # updated_at :datetime # class Upload < ActiveRecord::Base include Uploader::Models::Upload validates_attachment_presence :local validates_attachment_size :local, :less_than => 10.megabytes def can_edit?(user) return true end end
Version data entries
8 entries across 8 versions & 1 rubygems