Skip to content

Commit

Permalink
only require layout and security if using Prawn 0.8.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Whoops committed Apr 5, 2011
1 parent 560f415 commit f00a311
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/prawn_rails.rb
@@ -1,6 +1,9 @@
require 'prawn'
require 'prawn/layout'
require 'prawn/security'

if Prawn::VERSION == "0.8.4"
require 'prawn/layout'
require 'prawn/security'
end

module Prawn
module Rails
Expand Down

0 comments on commit f00a311

Please sign in to comment.