lib/eco/api/session/config/workflow.rb in eco-helpers-1.0.13 vs lib/eco/api/session/config/workflow.rb in eco-helpers-1.0.14

- old
+ new

@@ -30,10 +30,10 @@ end def get_model(key) raise "Expected Symbol. Given: #{key.class}" unless key.is_a?(Symbol) workflow = @workflow[key] - raise "Expected Array. Given #{model.class}" unless !workflow || workflow.is_a?(Hash) + raise "Expected Hash. Given #{model.class}" unless !workflow || workflow.is_a?(Hash) class_name = titleize(key.to_s) full_class_name = "#{self}::#{class_name}" if target_class = resolve_class(full_class_name, exception: false)