Fixed a few ruby19-isms for compatibility with ruby18

This commit is contained in:
Dean Matzkov
2011-09-06 01:36:57 -06:00
parent 60abc867ca
commit feaa3353f2
3 changed files with 3 additions and 3 deletions

View File

@@ -23,7 +23,7 @@ module ApplicationHelper
end
end
def time_tag(content = nil, time)
def time_tag(content, time)
zone = time.strftime("%z")
datetime = time.strftime("%Y-%m-%dT%H:%M" + zone[0, 3] + ":" + zone[3, 2])

View File

@@ -1,6 +1,6 @@
# Be sure to restart your server when you modify this file.
Danbooru::Application.config.session_store :cookie_store, key: '_danbooru_session'
Danbooru::Application.config.session_store :cookie_store, :key => '_danbooru_session'
# Use the database for sessions instead of the cookie-based default,
# which shouldn't be used to store highly confidential information

View File

@@ -4,7 +4,7 @@
# is enabled by default.
# Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
ActionController::Base.wrap_parameters format: [:json]
ActionController::Base.wrap_parameters :format => [:json]
# Disable root element in JSON by default.
if defined?(ActiveRecord)