webgui/lib/prince.rb in tournament-3.3.2 vs webgui/lib/prince.rb in tournament-3.3.3
- old
+ new
@@ -23,9 +23,10 @@
# Initialize method
#
def initialize()
# Finds where the application lives, so we can call it.
@exe_path = defined?(PRINCE_PATH) ? PRINCE_PATH : `which prince`.chomp
+ @exe_path = 'no prince' if @exe_path.blank?
@style_sheets = ''
@log_file = "#{RAILS_ROOT}/log/prince.log"
end
# Sets stylesheets...