fix
This commit is contained in:
parent
43c851e6b4
commit
eea2bf30df
1 changed files with 1 additions and 1 deletions
|
@ -12,7 +12,7 @@ class Map < ActiveRecord::Base
|
||||||
:thumb => ['188x126#', :png]
|
:thumb => ['188x126#', :png]
|
||||||
#:full => ['940x630#', :png]
|
#:full => ['940x630#', :png]
|
||||||
},
|
},
|
||||||
:default_url => ApplicationController.helpers.asset_path('missing-map.png')
|
:default_url => ActionController::Base.helpers.asset_path('missing-map.png')
|
||||||
|
|
||||||
# Validate the attached image is image/jpg, image/png, etc
|
# Validate the attached image is image/jpg, image/png, etc
|
||||||
validates_attachment_content_type :screenshot, :content_type => /\Aimage\/.*\Z/
|
validates_attachment_content_type :screenshot, :content_type => /\Aimage\/.*\Z/
|
||||||
|
|
Loading…
Reference in a new issue