9eb2125f15
OrderResult tables are removed. Data consistency is now possible through new article.price-history (ArticlePrice). Balancing-workflow needs to be updated.
28 lines
778 B
Ruby
28 lines
778 B
Ruby
require 'action_controller'
|
|
require 'action_view'
|
|
|
|
require 'prawn'
|
|
require 'prawnto/action_controller'
|
|
require 'prawnto/action_view'
|
|
|
|
require 'prawnto/template_handler/compile_support'
|
|
|
|
require 'prawnto/template_handlers/base'
|
|
require 'prawn/layout' # Added by benni
|
|
#require 'prawnto/template_handlers/raw'
|
|
|
|
# for now applying to all Controllers
|
|
# however, could reduce footprint by letting user mixin (i.e. include) only into controllers that need it
|
|
# but does it really matter performance wise to include in a controller that doesn't need it? doubtful-- depends how much of a hit the before_filter is i guess..
|
|
#
|
|
|
|
class ActionController::Base
|
|
include Prawnto::ActionController
|
|
end
|
|
|
|
class ActionView::Base
|
|
include Prawnto::ActionView
|
|
end
|
|
|
|
|
|
|