lib/prawn-rails/config.rb in prawn-rails-0.1.1 vs lib/prawn-rails/config.rb in prawn-rails-1.0.0

- old
+ new

@@ -1,22 +1,17 @@ require 'ostruct' module PrawnRails -extend self + extend self - @config = OpenStruct.new(:page_layout => :portrait, - :page_size => "A4", - :skip_page_creation => false) + @config = OpenStruct.new(page_layout: :portrait, page_size: "A4", skip_page_creation: false) def config begin block_given? ? yield(@config) : @config rescue => e puts e puts e.backtrace end - end end - -