Sha256: 0508835b14bc5241d5857c9bed031012bb29037085166482dec7f949ef43639a

Contents?: true

Size: 536 Bytes

Versions: 3

Compression:

Stored size: 536 Bytes

Contents

require "aws-sdk-resources"
require "delayed_job"
require "json-schema"
require "request_store"

require "journaled/engine"

module Journaled
  mattr_accessor :default_app_name

  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

  module_function :development_or_test?, :enabled?, :schema_providers
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
journaled-2.0.0.alpha1 lib/journaled.rb
journaled-1.0.1 lib/journaled.rb
journaled-1.0.0 lib/journaled.rb