Module: Prawnto::ActionControllerMixin

Defined in:
lib/prawnto/action_controller_mixin.rb

Defined Under Namespace

Modules: ClassMethods

Constant Summary collapse

DEFAULT_PRAWNTO_OPTIONS =
{:inline => true}

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



7
8
9
# File 'lib/prawnto/action_controller_mixin.rb', line 7

def self.included(base)
  base.extend ClassMethods
end

Instance Method Details

#prawnto(options) ⇒ Object



50
51
52
53
# File 'lib/prawnto/action_controller_mixin.rb', line 50

def prawnto(options)
  @prawnto_options ||= DEFAULT_PRAWNTO_OPTIONS.dup
  @prawnto_options.merge! options
end