Module: Prawnto::ActionController

Included in:
ActionController::Base
Defined in:
lib/prawnto/action_controller.rb

Defined Under Namespace

Modules: ClassMethods

Constant Summary

DEFAULT_PRAWNTO_OPTIONS =
{:inline=>true}

Class Method Summary (collapse)

Instance Method Summary (collapse)

Class Method Details

+ (Object) included(base)



6
7
8
# File 'lib/prawnto/action_controller.rb', line 6

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

Instance Method Details

- (Object) prawnto(options)



26
27
28
29
# File 'lib/prawnto/action_controller.rb', line 26

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