Fixed location of counter.log file.
This commit is contained in:
parent
3ce76617ad
commit
5b4a8f70ae
3 changed files with 4 additions and 4 deletions
|
@ -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)
|
||||
|
|
|
@ -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 )
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue