Sha256: 82596377ad1316209625b09a9a725f614ec99458c7382cf35356ed181525065c

Contents?: true

Size: 263 Bytes

Versions: 38

Compression:

Stored size: 263 Bytes

Contents

module Paperclip
  class MediaTypeSpoofDetector
    private
    def type_from_file_command
      begin
        Paperclip.run("LANG=C file", "-b --mime-type :file", :file => @file.path)
      rescue Cocaine::CommandLineError
        ""
      end
    end
  end
end

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
enju_leaf-1.3.6 config/initializers/paperclip.rb
enju_leaf-1.3.5 config/initializers/paperclip.rb
enju_leaf-1.3.4 config/initializers/paperclip.rb
enju_leaf-1.3.4.rc.2 config/initializers/paperclip.rb
enju_leaf-1.3.4.rc.1 config/initializers/paperclip.rb
enju_leaf-2.0.0.beta.2 config/initializers/paperclip.rb
enju_leaf-2.0.0.beta.1 config/initializers/paperclip.rb
enju_leaf-1.3.3.1 config/initializers/paperclip.rb
enju_leaf-1.3.3 config/initializers/paperclip.rb
enju_leaf-1.3.2 config/initializers/paperclip.rb
enju_leaf-1.3.1 config/initializers/paperclip.rb
enju_leaf-1.3.0 config/initializers/paperclip.rb
enju_leaf-1.3.0.rc.1 config/initializers/paperclip.rb
enju_leaf-1.3.0.beta.2 config/initializers/paperclip.rb
enju_leaf-1.2.2 config/initializers/paperclip.rb
enju_leaf-1.2.1 config/initializers/paperclip.rb
enju_leaf-1.2.0 config/initializers/paperclip.rb
enju_leaf-1.2.0.beta.4 config/initializers/paperclip.rb
enju_leaf-1.2.0.beta.3 config/initializers/paperclip.rb
enju_leaf-1.2.0.beta.2 config/initializers/paperclip.rb