Module: Operations

Defined in:
lib/operations.rb,
lib/operations/version.rb

Overview

The root gem module

Defined Under Namespace

Modules: Components, Convenience, TestHelpers, Types Classes: Command, Configuration, Contract, Error, Form, Inspect, Result

Constant Summary collapse

DEFAULT_ERROR_REPORTER =
->(message, payload) { Sentry.capture_message(message, extra: payload) }
DEFAULT_TRANSACTION =
->(&block) { ActiveRecord::Base.transaction(requires_new: true, &block) }
DEFAULT_AFTER_COMMIT =
->(&block) { AfterCommitEverywhere.after_commit(&block) }
VERSION =
"0.7.2"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.default_configObject (readonly)

Returns the value of attribute default_config.



37
38
39
# File 'lib/operations.rb', line 37

def default_config
  @default_config
end

Class Method Details

.configure(configuration = nil, **options) ⇒ Object



39
40
41
# File 'lib/operations.rb', line 39

def configure(configuration = nil, **options)
  @default_config = (configuration || Configuration).new(**options)
end