Module: Prawnto::ActionControllerMixin::ClassMethods
- Defined in:
- lib/prawnto/action_controller_mixin.rb
Instance Method Summary collapse
-
#prawnto(options) ⇒ Object
This is the class setter.
Instance Method Details
#prawnto(options) ⇒ Object
This is the class setter. It lets you set default options for all prawn actions within a controller.
16 17 18 19 20 |
# File 'lib/prawnto/action_controller_mixin.rb', line 16 def prawnto() , = self.prawn_hash = self.prawnto_hash = DEFAULT_PRAWNTO_OPTIONS.dup.merge() end |