Class: Dorsale::ApplicationPdf

Inherits:
Prawn::Document
  • Object
show all
Includes:
Dorsale::Alexandrie::Prawn::RenderWithAttachments, PrawnHelpers
Defined in:
app/pdfs/dorsale/application_pdf.rb

Instance Method Summary collapse

Methods included from PrawnHelpers

#bb, #btb, #draw_debug_bounds!, #draw_debug_bounds?, #get_image, #page_height, #page_width, #placeholder, #t, #tb

Methods included from UsersHelper

#avatar_img, #default_avatar_url

Methods included from ExpenseGun::ApplicationHelper

#expense_states_for_filters_select

Methods included from Flyboy::ApplicationHelper

#flyboy_reminder_type_units_for_select, #flyboy_reminder_types_for_select, #flyboy_status_for_filters_select, #flyboy_tasks_owners_for_filters_select, #flyboy_tasks_owners_for_select, #flyboy_tasks_tags_for_filters_select, #flyboy_tasks_tags_for_select, #show_tasks_summary, #task_term_values_for_select, #tasks_for

Methods included from CustomerVault::ApplicationHelper

#customer_vault_activity_types_for_select, #customer_vault_event_actions_for_filter_select, #customer_vault_event_contact_types_for_filter_select, #customer_vault_link_form_path, #customer_vault_origins_for_select, #customer_vault_tag_list, #new_event_for, #person_address_blank?, #person_related_people_blank?, #person_social_blank?, #person_types_for_filter_select

Methods included from BillingMachine::ApplicationHelper

#billing_machine_invoices_chart, #billing_machine_payment_status_for_filter_select, #billing_machine_quotation_states_for_filter_select, #billing_machine_quotation_states_for_select, #bm_currency, #quotation_state_classes

Methods included from Dorsale::Alexandrie::AttachmentsHelper

#attachments_for

Methods included from CommentsHelper

#comments_for, #new_comment_for, #truncate_comment_text, #truncate_comments_in_this_page?

Methods included from ContextHelper

#actions_for, #render_dorsale_page

Instance Method Details

#open!Object

Pour le dev



10
11
12
13
14
15
16
# File 'app/pdfs/dorsale/application_pdf.rb', line 10

def open!
  build
  f = Tempfile.new(%w(pdf pdf))
  f.binmode
  f.write(render_with_attachments)
  Launchy.open(f.path)
end