Skip to content

Commit

Permalink
Removed code that was already included in railties
Browse files Browse the repository at this point in the history
  • Loading branch information
anlek committed Sep 6, 2012
1 parent b19042c commit 049618a
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions init.rb
Original file line number Diff line number Diff line change
@@ -1,14 +1,2 @@
require 'wicked_pdf'
require 'wicked_pdf_tempfile'

unless ActionController::Base.instance_methods.collect(&:to_s).include? "render_with_wicked_pdf"
require 'pdf_helper'
ActionController::Base.send :include, PdfHelper
end

unless ActionView::Base.instance_methods.collect(&:to_s).include? "wicked_pdf_stylesheet_link_tag"
require 'wicked_pdf_helper'
ActionView::Base.send :include, WickedPdfHelper
end

Mime::Type.register 'application/pdf', :pdf

0 comments on commit 049618a

Please sign in to comment.