Merge branch 'ruby-2.1'

This reverts commit 616aef4394.
This commit is contained in:
r888888888
2014-04-25 10:55:36 -07:00
parent f0c89fea03
commit 53844af8dc
4 changed files with 8 additions and 3 deletions

View File

@@ -1 +1 @@
1.9.3-p327
2.1.1

View File

@@ -63,3 +63,6 @@ group :development do
# gem 'sql-logging'
end
group :development, :test do
gem 'pry'
end

View File

@@ -304,13 +304,13 @@ class Upload < ActiveRecord::Base
def file_header_to_content_type(source_path)
case File.read(source_path, 10)
when /^\xff\xd8/
when /^\xff\xd8/n
"image/jpeg"
when /^GIF87a/, /^GIF89a/
"image/gif"
when /^\x89PNG\r\n\x1a\n/
when /^\x89PNG\r\n\x1a\n/n
"image/png"
when /^CWS/, /^FWS/, /^ZWS/

View File

@@ -21,4 +21,6 @@ module Danbooru
config.action_mailer.perform_deliveries = true
config.log_tags = [lambda {|req| "PID:#{Process.pid}"}]
end
I18n.enforce_available_locales = false
end