Commit 18cfafb

mokha <mokha@cisco.com>
2018-02-08 22:44:40
use ruby 2.2.0 syntax.
1 parent ed3e826
Changed files (1)
lib
saml
lib/saml/kit/cli/yaml_registry.rb
@@ -35,11 +35,13 @@ module Saml
           if @in_transaction
             yield @items
           else
-            @items.transaction do
-              @in_transaction = true
-              yield @items
-            ensure
-              @in_transaction = false
+            begin
+              @items.transaction do
+                @in_transaction = true
+                yield @items
+              ensure
+                @in_transaction = false
+              end
             end
           end
         end