Module: Servitium

Defined in:
lib/servitium.rb,
lib/servitium/i18n.rb,
lib/servitium/error.rb,
lib/servitium/context.rb,
lib/servitium/service.rb,
lib/servitium/version.rb,
lib/servitium/sub_contexts.rb,
lib/servitium/configuration.rb,
lib/servitium/context_model.rb,
lib/servitium/rails/railtie.rb,
lib/servitium/context_failure.rb,
lib/servitium/scoped_attributes.rb,
lib/servitium/service_active_job.rb,
lib/servitium/service_sidekiq_job.rb,
lib/servitium/transactional_mixin.rb,
lib/servitium/capture_exceptions_mixin.rb,
lib/generators/servitium/service_generator.rb

Defined Under Namespace

Modules: CaptureExceptionsMixin, ContextModel, I18n, Rails, SubContexts, TransactionalMixin Classes: Configuration, Context, ContextFailure, Error, ScopedAttributes, Service, ServiceActiveJob, ServiceGenerator, ServiceSidekiqJob

Constant Summary collapse

VERSION =
"1.3.1"

Class Method Summary collapse

Class Method Details

.configObject



32
33
34
# File 'lib/servitium.rb', line 32

def config
  @config ||= Configuration.new
end

.setup {|config| ... } ⇒ Object

Yields:



27
28
29
30
# File 'lib/servitium.rb', line 27

def setup
  @config = Configuration.new
  yield config
end