Replaced rfpdf with prawn and prawnto. Start to convert pdf-views.
This commit is contained in:
parent
da309f03b0
commit
a6c7b04e33
165 changed files with 723 additions and 28123 deletions
27
vendor/plugins/prawnto/lib/prawnto.rb
vendored
Normal file
27
vendor/plugins/prawnto/lib/prawnto.rb
vendored
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
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 '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
|
||||
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue