Sha256: 5665335043a87c276de9f0c72fe975c81e1b86487415025db24d41f85994fa5c

Contents?: true

Size: 712 Bytes

Versions: 24

Compression:

Stored size: 712 Bytes

Contents

class AttachmentFile < Asset

  # === List of columns ===
  #   id                : integer 
  #   data_file_name    : string 
  #   data_content_type : string 
  #   data_file_size    : integer 
  #   assetable_id      : integer 
  #   assetable_type    : string 
  #   type              : string 
  #   locale            : integer 
  #   user_id           : integer 
  #   created_at        : datetime 
  #   updated_at        : datetime 
  # =======================

  has_attached_file :data,
                    :url => "/assets/attachments/:id/:filename",
                    :path => ":rails_root/public/assets/attachments/:id/:filename"
  
  validates_attachment_size :data, :less_than=>10.megabytes
end

Version data entries

24 entries across 24 versions & 5 rubygems

Version Path
ckeditor-3.5.3 examples/models/paperclip/attachment_file.rb
ckeditor-3.5.2 examples/models/paperclip/attachment_file.rb
ckeditor-3.5.1 examples/models/paperclip/attachment_file.rb
dust-ckeditor-3.5.0 examples/models/paperclip/attachment_file.rb
hifi-ckeditor-3.5.2 examples/models/paperclip/attachment_file.rb
hifi-ckeditor-3.5.1 examples/models/paperclip/attachment_file.rb
artemk-ckeditor-3.5.5 examples/models/paperclip/attachment_file.rb
ckeditor-jess-3.4.3 examples/models/paperclip/attachment_file.rb
ckeditor-3.5.0 examples/models/paperclip/attachment_file.rb
artemk-ckeditor-3.5.4 examples/models/paperclip/attachment_file.rb
artemk-ckeditor-3.4.4 examples/models/paperclip/attachment_file.rb
artemk-ckeditor-3.4.3 examples/models/paperclip/attachment_file.rb
ckeditor-3.4.3.pre examples/models/paperclip/attachment_file.rb
ckeditor-3.4.3 examples/models/paperclip/attachment_file.rb
ckeditor-3.4.2.pre examples/models/paperclip/attachment_file.rb
ckeditor-3.4.2 examples/models/paperclip/attachment_file.rb
ckeditor-3.4.1.pre examples/models/paperclip/attachment_file.rb
ckeditor-3.4.1 examples/models/paperclip/attachment_file.rb
ckeditor-3.4.0 examples/models/paperclip/attachment_file.rb
ckeditor-3.4.0.pre examples/models/paperclip/attachment_file.rb