lib/roda/endpoints/endpoint/transactions.rb in roda-endpoints-0.1.0 vs lib/roda/endpoints/endpoint/transactions.rb in roda-endpoints-0.2.0
- old
+ new
@@ -21,18 +21,9 @@
end
yield @transaction if block_given?
@transactions
end
- # @param [Symbol] verb
- # @return [String]
- def transaction_for(verb)
- %W(
- transactions.#{ns}.#{verb}
- transactions.#{type}.#{verb}
- ).detect { |key| container.key?(key) }
- end
-
# @param [Symbol, String] name
# @param [Proc] block
def step(name, only: [], **kwargs, &block)
name = "operations.#{ns}.#{name}"
container.register(name, &block) if block_given?