Sha256: 8ea15aea233e4bcc3365aa979741eca3ecc663bded8f7f3f1c372b1e70fd5723
Contents?: true
Size: 756 Bytes
Versions: 1
Compression:
Stored size: 756 Bytes
Contents
require "aws-sdk-resources" require "delayed_job" require "json-schema" require "request_store" require "journaled/engine" require 'journaled/enqueue' module Journaled mattr_accessor :default_app_name mattr_accessor(:job_priority) { 20 } def development_or_test? %w(development test).include?(Rails.env) end def enabled? !['0', 'false', false, 'f', ''].include?(ENV.fetch('JOURNALED_ENABLED', !development_or_test?)) end def schema_providers @schema_providers ||= [Journaled::Engine, Rails] end def commit_hash ENV.fetch('GIT_COMMIT') end def actor_uri Journaled::ActorUriProvider.instance.actor_uri end module_function :development_or_test?, :enabled?, :schema_providers, :commit_hash, :actor_uri end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
journaled-2.3.0 | lib/journaled.rb |