Skip to content

Instantly share code, notes, and snippets.

View smostovoy's full-sized avatar

Sergii Mostovyi smostovoy

View GitHub Profile
# frozen_string_literal: true
class BaseOperation
# DSL method to create wrapped operations with a transaction
# Creates both #some_action and #some_action! method versions
# A 'bang' version of a method does not process validation exceptions (to bubble up)
#
# All block arguments are converted to a method params
#
# Examples: