Sha256: 53b39def3f3f47181c3ade9123667355c2ef17967ab63932891b40514f1a030d
Contents?: true
Size: 791 Bytes
Versions: 3
Compression:
Stored size: 791 Bytes
Contents
require "aws-sdk-resources" require "delayed_job" require "json-schema" require "request_store" require "journaled/engine" require "journaled/job_priority" module Journaled mattr_accessor :default_app_name mattr_accessor(:job_priority) { Journaled::JobPriority::EVENTUAL } 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
journaled-2.2.0 | lib/journaled.rb |
journaled-2.1.1 | lib/journaled.rb |
journaled-2.1.0 | lib/journaled.rb |