Method: Princely::PdfHelper#render_with_princely
- Defined in:
- lib/princely/pdf_helper.rb
#render_with_princely(options = nil, *args, &block) ⇒ Object
16 17 18 19 20 21 22 23 |
# File 'lib/princely/pdf_helper.rb', line 16 def render_with_princely( = nil, *args, &block) if .is_a?(Hash) && .has_key?(:pdf) [:name] ||= .delete(:pdf) make_and_send_pdf(.delete(:name), ) else render_without_princely(, *args, &block) end end |