Add paperclip gem

This commit is contained in:
Reinier Balt 2015-08-05 12:58:52 +02:00
parent 0b44fe3f08
commit 5499ac2a03
3 changed files with 23 additions and 0 deletions

View file

@ -32,6 +32,7 @@ gem "htmlentities"
gem "swf_fu"
gem "rails_autolink"
gem 'thin'
gem 'paperclip'
# To use ActiveModel has_secure_password
gem 'bcrypt', '~> 3.1.7'

View file

@ -52,6 +52,10 @@ GEM
xpath (~> 2.0)
childprocess (0.5.5)
ffi (~> 1.0, >= 1.0.11)
climate_control (0.0.3)
activesupport (>= 3.0)
cocaine (0.5.7)
climate_control (>= 0.0.3, < 1.0)
codeclimate-test-reporter (0.4.1)
simplecov (>= 0.7.1, < 1.0.0)
coffee-rails (4.1.0)
@ -101,6 +105,7 @@ GEM
mime-types (>= 1.16, < 3)
metaclass (0.0.4)
mime-types (2.6.1)
mimemagic (0.3.0)
mini_portile (0.6.1)
minitest (5.7.0)
mocha (1.1.0)
@ -112,6 +117,12 @@ GEM
mini_portile (~> 0.6.0)
nokogumbo (1.1.12)
nokogiri
paperclip (4.3.0)
activemodel (>= 3.2.0)
activesupport (>= 3.2.0)
cocaine (~> 0.5.5)
mime-types
mimemagic (= 0.3.0)
rack (1.5.5)
rack-dev-mark (0.7.3)
rack (>= 1.1)
@ -228,6 +239,7 @@ DEPENDENCIES
jquery-rails
mocha
mysql2
paperclip
rack-dev-mark
rack-mini-profiler
rails (~> 4.1.11)

View file

@ -0,0 +1,10 @@
#config/initilizers/paperclip.rb
require 'paperclip/media_type_spoof_detector'
module Paperclip
class MediaTypeSpoofDetector
def spoofed?
false
end
end
end