PATCH: in some cases this is being turned to a string workaround for now

This commit is contained in:
Sam 2015-08-26 16:19:21 +10:00
parent 5afdbb314b
commit ea9bc68ee5
1 changed files with 1 additions and 1 deletions

View File

@ -579,7 +579,7 @@ class User < ActiveRecord::Base
end end
def treat_as_new_topic_start_date def treat_as_new_topic_start_date
duration = new_topic_duration_minutes || SiteSetting.default_other_new_topic_duration_minutes duration = new_topic_duration_minutes || SiteSetting.default_other_new_topic_duration_minutes.to_i
[case duration [case duration
when User::NewTopicDuration::ALWAYS when User::NewTopicDuration::ALWAYS
created_at created_at