This commit is contained in:
Devin Howard 2015-10-27 18:16:35 +08:00 committed by Connor Turland
parent 4b6e33f983
commit 2cbf1cad7f

View file

@ -12,7 +12,7 @@ class Map < ActiveRecord::Base
:thumb => ['188x126#', :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
validates_attachment_content_type :screenshot, :content_type => /\Aimage\/.*\Z/