Module: PaperclipUpload
- Extended by:
- PaperclipUpload
- Included in:
- PaperclipUpload
- Defined in:
- app/models/paperclip_upload/upload.rb,
lib/paperclip_upload.rb,
lib/paperclip_upload/engine.rb,
lib/paperclip_upload/version.rb,
lib/paperclip_upload/active_record_extension.rb,
app/helpers/paperclip_upload/application_helper.rb,
app/controllers/paperclip_upload/uploads_controller.rb,
app/controllers/paperclip_upload/application_controller.rb
Overview
Table name: paperclip_upload_uploads
id :integer not null, primary key
created_at :datetime not null
updated_at :datetime not null
file_file_name :string
file_content_type :string
file_file_size :integer
file_updated_at :datetime
Defined Under Namespace
Modules: ActiveRecordExtension, ApplicationHelper
Classes: ApplicationController, Engine, InstallGenerator, Upload, UploadControllerGenerator, UploadSerializer, UploadsController
Constant Summary
collapse
- VERSION =
"1.2.3"
Instance Attribute Summary collapse
Instance Method Summary
collapse
Instance Attribute Details
#hash_salt ⇒ Object
13
14
15
16
|
# File 'lib/paperclip_upload.rb', line 13
def hash_salt
return "default" unless @hash_salt
@hash_salt
end
|
#use_prefix ⇒ Object
18
19
20
|
# File 'lib/paperclip_upload.rb', line 18
def use_prefix
@use_prefix == true
end
|
Instance Method Details
#setup {|_self| ... } ⇒ Object
22
23
24
25
|
# File 'lib/paperclip_upload.rb', line 22
def setup
yield self
require "paperclip_upload"
end
|