Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added icon. Fixed whitespace.

  • Loading branch information...
commit a6f7fe3ed6531965235c73c676332c6f582171aa 1 parent 2e9ceb7
@stephskardal authored
Showing with 10 additions and 6 deletions.
  1. +10 −6 lib/rails_admin_pdf.rb
View
16 lib/rails_admin_pdf.rb
@@ -15,12 +15,16 @@ class Pdf < Base
true
end
- register_instance_option :controller do
- Proc.new do
- report = "#{@object.class.to_s.demodulize}Report".constantize.new
- send_data report.to_pdf(@object), :filename => "#{@object.class.to_s.demodulize}_#{@object.id}.pdf", :type => "application/pdf"
- end
- end
+ register_instance_option :controller do
+ Proc.new do
+ report = "#{@object.class.to_s.demodulize}Report".constantize.new
+ send_data report.to_pdf(@object), :filename => "#{@object.class.to_s.demodulize}_#{@object.id}.pdf", :type => "application/pdf"
+ end
+ end
+
+ register_instance_option :link_icon do
+ 'icon-folder-open'
+ end
end
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.