lib/eco/api/common/loaders/base.rb in eco-helpers-2.5.10 vs lib/eco/api/common/loaders/base.rb in eco-helpers-2.6.0

- old
+ new

@@ -28,14 +28,10 @@ # - this method should implement the loading logics for the given `Children` class. def initialize raise "You should implement this method" end - def name - self.class.name - end - private def session @session ||= ASSETS.session end @@ -52,14 +48,11 @@ session.micro end def abort(msg, raising: true) logger.error(msg) - if raising - raise msg - else - exit(1) - end + raise msg if raising + exit 1 end end end end end