Second (last) part of multiple foodcoop installation.
* When before_filter select_foodcoop is activated, the database and configs will be loaded on each request. * Replaced APP_CONFIG with new Foodsoft.config method.
This commit is contained in:
parent
1c24127928
commit
ffc3adf907
18 changed files with 51 additions and 57 deletions
|
|
@ -1,5 +1,5 @@
|
|||
# Get ActiveRecord objects
|
||||
contact = APP_CONFIG[:contact].symbolize_keys
|
||||
contact = Foodsoft.config[:contact].symbolize_keys
|
||||
|
||||
# Define header and footer
|
||||
#pdf.header [pdf.margin_box.left,pdf.margin_box.top+30] do
|
||||
|
|
@ -12,7 +12,7 @@ end
|
|||
|
||||
# From paragraph
|
||||
pdf.bounding_box [pdf.margin_box.right-200,pdf.margin_box.top], :width => 200 do
|
||||
pdf.text APP_CONFIG[:name], :align => :right
|
||||
pdf.text Foodsoft.config[:name], :align => :right
|
||||
pdf.move_down 5
|
||||
pdf.text contact[:street], :align => :right
|
||||
pdf.move_down 5
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue