add necessary validations for event_attachment
This commit is contained in:
parent
50e75c6dd4
commit
2244f55629
1 changed files with 1 additions and 0 deletions
|
|
@ -6,6 +6,7 @@ class EventAttachment < ActiveRecord::Base
|
||||||
|
|
||||||
has_attached_file :attachment, :path => ":rails_root/storage/:rails_env/attachments/:id/:style/:basename.:extension"
|
has_attached_file :attachment, :path => ":rails_root/storage/:rails_env/attachments/:id/:style/:basename.:extension"
|
||||||
include Rails.application.routes.url_helpers
|
include Rails.application.routes.url_helpers
|
||||||
|
do_not_validate_attachment_file_type :attachment
|
||||||
|
|
||||||
def to_jq_upload
|
def to_jq_upload
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue