Fixed location of counter.log file.

This commit is contained in:
Martin Edenhofer 2012-11-07 13:49:01 +01:00
parent 3ce76617ad
commit 5b4a8f70ae
3 changed files with 4 additions and 4 deletions

View file

@ -10,7 +10,7 @@ module Ticket::Number::Date
date = t.strftime("%Y-%m-%d")
# read counter
file_name = config[:file] || '/tmp/counter.log'
file_name = Rails.root.to_s + '/' + config[:file]
contents = ""
begin
file = File.open(file_name)

View file

@ -8,7 +8,7 @@ module Ticket::Number::Increment
# read counter
min_digs = config[:min_size] || 4;
file_name = config[:file] || '/tmp/counter.log'
file_name = Rails.root.to_s + '/' + config[:file]
contents = ""
begin
file = File.open( file_name )

View file

@ -759,7 +759,7 @@ Setting.create(
:state => {
:value => {
:checksum => false,
:file => '/tmp/counter.log',
:file => 'tmp/counter.log',
:min_size => 5,
},
},
@ -793,7 +793,7 @@ Setting.create(
:state => {
:value => {
:checksum => false,
:file => '/tmp/counter.log',
:file => 'tmp/counter.log',
}
},
:frontend => false