lib/papermill.rb in papermill-1.1.4 vs lib/papermill.rb in papermill-1.1.5
- old
+ new
@@ -7,10 +7,13 @@
File.send :include, PapermillFileExtensions
String.send :include, StringToUrlNotFound unless String.instance_methods.include? "to_url"
Formtastic::SemanticFormBuilder.send(:include, PapermillFormtasticExtensions) rescue NameError
require 'papermill/papermill_options.rb'
-require File.join(RAILS_ROOT, "config/initializers/papermill.rb") rescue LoadError, MissingSourceFile
+begin
+ require File.join(RAILS_ROOT, "config/initializers/papermill.rb")
+rescue LoadError, MissingSourceFile
+end
require 'paperclip' unless defined?(Paperclip)
require 'papermill/papermill_paperclip_processor'
require 'papermill/papermill'
require 'papermill/papermill_asset'
require 'papermill/form_builder'