fix references to Rails.application.secrets

This commit is contained in:
Devin Howard 2015-10-30 14:18:50 +08:00 committed by Connor Turland
parent 570fa931b7
commit ede4e7a509
2 changed files with 2 additions and 2 deletions

View file

@ -12,7 +12,7 @@ class Map < ActiveRecord::Base
:thumb => ['188x126#', :png]
#:full => ['940x630#', :png]
},
:default_url => Rails.secrets.missing_map_png_url
:default_url => Rails.application.secrets.missing_map_png_url
# Validate the attached image is image/jpg, image/png, etc
validates_attachment_content_type :screenshot, :content_type => /\Aimage\/.*\Z/

View file

@ -35,7 +35,7 @@ class User < ActiveRecord::Base
:ninetysix => ['96x96#', :png],
:onetwentyeight => ['128x128#', :png]
},
:default_url => Rails.secrets.user_png_url
:default_url => Rails.application.secrets.user_png_url
# Validate the attached image is image/jpg, image/png, etc
validates_attachment_content_type :image, :content_type => /\Aimage\/.*\Z/