Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: c422e5f407
Fetching contributors…

Cannot retrieve contributors at this time

10 lines (8 sloc) 0.306 kB
class Doc < StoredFile
set_table_name "stored_files"
has_attachment :content_type => 'application/msword',
:max_size => 3.megabytes,
:storage => RAILS_ENV == 'production' ? :s3 : :file_system,
:s3_access => :private
validates_as_attachment
end
Jump to Line
Something went wrong with that request. Please try again.