does this fix missing-map.png?

This commit is contained in:
Devin Howard 2015-10-26 21:12:18 +08:00
parent 5ce460e967
commit 43c851e6b4

View file

@ -12,7 +12,7 @@ class Map < ActiveRecord::Base
:thumb => ['188x126#', :png]
#:full => ['940x630#', :png]
},
:default_url => ActionController::Base.helpers.asset_path('images/missing-map.png')
:default_url => ApplicationController.helpers.asset_path('missing-map.png')
# Validate the attached image is image/jpg, image/png, etc
validates_attachment_content_type :screenshot, :content_type => /\Aimage\/.*\Z/