Fixed load of adapter problem.
This commit is contained in:
parent
eb85745c04
commit
ce383eefd3
2 changed files with 4 additions and 4 deletions
|
@ -18,7 +18,7 @@ class Ticket < ActiveRecord::Base
|
||||||
return @@number_adapter if @@number_adapter
|
return @@number_adapter if @@number_adapter
|
||||||
case adapter_name
|
case adapter_name
|
||||||
when Symbol, String
|
when Symbol, String
|
||||||
require "ticket/number/#{adapter_name}"
|
require "ticket/number/#{adapter_name.to_s.downcase}"
|
||||||
@@number_adapter = Ticket::Number.const_get("#{adapter_name.to_s.capitalize}")
|
@@number_adapter = Ticket::Number.const_get("#{adapter_name.to_s.capitalize}")
|
||||||
else
|
else
|
||||||
raise "Missing number_adapter #{adapter_name}"
|
raise "Missing number_adapter #{adapter_name}"
|
||||||
|
|
|
@ -559,14 +559,14 @@ Setting.create(
|
||||||
:name => 'ticket_number',
|
:name => 'ticket_number',
|
||||||
:tag => 'select',
|
:tag => 'select',
|
||||||
:options => {
|
:options => {
|
||||||
'Increment' => 'Increment',
|
'increment' => 'Increment (SystemID.Counter)',
|
||||||
'Date' => 'Date',
|
'date' => 'Date (Year.Month.Day.SystemID.Counter)',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
:state => {
|
:state => {
|
||||||
:value => 'Increment',
|
:value => 'increment',
|
||||||
},
|
},
|
||||||
:frontend => false
|
:frontend => false
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue