examples/general/context_sensitive_headers.rb in prawn-0.11.1.pre vs examples/general/context_sensitive_headers.rb in prawn-0.11.1
- old
+ new
@@ -1,5 +1,6 @@
-require "#{File.dirname(__FILE__)}/../example_helper.rb"
+require File.expand_path(File.join(File.dirname(__FILE__),
+ %w[.. example_helper]))
# Ex. Generate a roster of meeting attendees given a set of meetings.
# Attendees for a meeting may overflow to accross page boundaries but
# each meeting starts on a separate page. Each page for any given
# meeting will have the heading for that meeting.