fixes by houndci
This commit is contained in:
parent
cdaa9ba41a
commit
8c69d0f651
1 changed files with 9 additions and 8 deletions
|
|
@ -1,16 +1,17 @@
|
||||||
class EventAttachment < ActiveRecord::Base
|
class EventAttachment < ActiveRecord::Base
|
||||||
has_paper_trail
|
has_paper_trail
|
||||||
|
|
||||||
belongs_to :event
|
belongs_to :event
|
||||||
attr_accessible :public, :attachment, :event_id, :title
|
attr_accessible :public, :attachment, :event_id, :title
|
||||||
|
|
||||||
has_attached_file :attachment
|
has_attached_file :attachment
|
||||||
validates_attachment_content_type :attachment, :content_type => ['text/plain','image/jpg','image/jpeg',
|
validates_attachment_content_type :attachment, content_type: ['text/plain','image/jpg','image/jpeg',
|
||||||
'image/pjpeg','image/png','image/x-png','image/gif','application/pdf','application/msword','applicationvnd.ms-word',
|
'image/pjpeg','image/png','image/x-png','image/gif','application/pdf','application/msword',
|
||||||
'applicaiton/vnd.openxmlformats-officedocument.wordprocessingm1.document','application/msexcel',
|
'applicationvnd.ms-word','applicaiton/vnd.openxmlformats-officedocument.wordprocessingm1.document',
|
||||||
'application/vnd.ms-excel','application/vnd.openxmlformats-officedocument.spreadsheetml.sheet','application/mspowerpoint',
|
'application/msexcel','application/vnd.ms-excel',
|
||||||
'application/vnd.ms-powerpoint','application/vnd.openxmlformats-officedocument.presentationml.presentation',
|
'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
|
||||||
'application/vnd.oasis.opendocument.presentation','application/vnd.openxmlformats-officedocument.wordprocessingml.document']
|
'application/mspowerpoint','application/vnd.ms-powerpoint',
|
||||||
|
'application/vnd.openxmlformats-officedocument.presentationml.presentation',
|
||||||
|
'application/vnd.oasis.opendocument.presentation',
|
||||||
|
'application/vnd.openxmlformats-officedocument.wordprocessingml.document']
|
||||||
include Rails.application.routes.url_helpers
|
include Rails.application.routes.url_helpers
|
||||||
|
|
||||||
def to_jq_upload
|
def to_jq_upload
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue