mirror of
https://github.com/TracksApp/tracks.git
synced 2026-03-06 04:40:18 +01:00
Add paperclip gem
This commit is contained in:
parent
0b44fe3f08
commit
5499ac2a03
3 changed files with 23 additions and 0 deletions
1
Gemfile
1
Gemfile
|
|
@ -32,6 +32,7 @@ gem "htmlentities"
|
||||||
gem "swf_fu"
|
gem "swf_fu"
|
||||||
gem "rails_autolink"
|
gem "rails_autolink"
|
||||||
gem 'thin'
|
gem 'thin'
|
||||||
|
gem 'paperclip'
|
||||||
|
|
||||||
# To use ActiveModel has_secure_password
|
# To use ActiveModel has_secure_password
|
||||||
gem 'bcrypt', '~> 3.1.7'
|
gem 'bcrypt', '~> 3.1.7'
|
||||||
|
|
|
||||||
12
Gemfile.lock
12
Gemfile.lock
|
|
@ -52,6 +52,10 @@ GEM
|
||||||
xpath (~> 2.0)
|
xpath (~> 2.0)
|
||||||
childprocess (0.5.5)
|
childprocess (0.5.5)
|
||||||
ffi (~> 1.0, >= 1.0.11)
|
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)
|
codeclimate-test-reporter (0.4.1)
|
||||||
simplecov (>= 0.7.1, < 1.0.0)
|
simplecov (>= 0.7.1, < 1.0.0)
|
||||||
coffee-rails (4.1.0)
|
coffee-rails (4.1.0)
|
||||||
|
|
@ -101,6 +105,7 @@ GEM
|
||||||
mime-types (>= 1.16, < 3)
|
mime-types (>= 1.16, < 3)
|
||||||
metaclass (0.0.4)
|
metaclass (0.0.4)
|
||||||
mime-types (2.6.1)
|
mime-types (2.6.1)
|
||||||
|
mimemagic (0.3.0)
|
||||||
mini_portile (0.6.1)
|
mini_portile (0.6.1)
|
||||||
minitest (5.7.0)
|
minitest (5.7.0)
|
||||||
mocha (1.1.0)
|
mocha (1.1.0)
|
||||||
|
|
@ -112,6 +117,12 @@ GEM
|
||||||
mini_portile (~> 0.6.0)
|
mini_portile (~> 0.6.0)
|
||||||
nokogumbo (1.1.12)
|
nokogumbo (1.1.12)
|
||||||
nokogiri
|
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 (1.5.5)
|
||||||
rack-dev-mark (0.7.3)
|
rack-dev-mark (0.7.3)
|
||||||
rack (>= 1.1)
|
rack (>= 1.1)
|
||||||
|
|
@ -228,6 +239,7 @@ DEPENDENCIES
|
||||||
jquery-rails
|
jquery-rails
|
||||||
mocha
|
mocha
|
||||||
mysql2
|
mysql2
|
||||||
|
paperclip
|
||||||
rack-dev-mark
|
rack-dev-mark
|
||||||
rack-mini-profiler
|
rack-mini-profiler
|
||||||
rails (~> 4.1.11)
|
rails (~> 4.1.11)
|
||||||
|
|
|
||||||
10
config/initializers/paperclip.rb
Normal file
10
config/initializers/paperclip.rb
Normal 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
|
||||||
Loading…
Add table
Add a link
Reference in a new issue