lib/dassets.rb in dassets-0.4.1 vs lib/dassets.rb in dassets-0.5.0

- old
+ new

@@ -17,10 +17,14 @@ def self.configure(&block) block.call(self.config) end def self.init - require self.config.assets_file + begin + require self.config.assets_file + rescue LoadError + end + raise 'no Dassets `root_path` specified' if !self.config.required_set? end def self.[](digest_path) AssetFile.new(digest_path) end