lib/hybag/ingester.rb in hybag-0.0.10 vs lib/hybag/ingester.rb in hybag-0.0.11

- old
+ new

@@ -6,10 +6,10 @@ def initialize(bag) @bag = bag end def ingest - raise "Unable to determine model from bag" if model_name.blank? + raise Hybag::UndiscoverableModelName.new(bag) if model_name.blank? new_object = model_name.constantize.new # Assign a pid new_object.inner_object.pid = new_object.inner_object.assign_pid set_metadata_streams(new_object) set_file_streams(new_object) \ No newline at end of file