From 4b6e33f98353c7bd2dd96c673a6a31a3b1d444e4 Mon Sep 17 00:00:00 2001 From: Devin Howard Date: Mon, 26 Oct 2015 21:12:18 +0800 Subject: [PATCH] does this fix missing-map.png? --- app/models/map.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/map.rb b/app/models/map.rb index 5ed9b32a..2e63dec4 100644 --- a/app/models/map.rb +++ b/app/models/map.rb @@ -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/