Sha256: a702945c4a4bd7bc8ccba20ec945e31b7c5c67a15847547acd4c394ba4da1703

Contents?: true

Size: 567 Bytes

Versions: 2

Compression:

Stored size: 567 Bytes

Contents

require 'workarea'
require 'workarea/storefront'
require 'workarea/admin'

require 'workarea/segment_analytics/engine'
require 'workarea/segment_analytics/version'

module Workarea
  module SegmentAnalytics
    include ActiveSupport::Configurable
    config_accessor :write_key

    def self.configure_secrets
      if Rails.application.secrets.segment_analytics.present?
        secrets = Rails.application.secrets.segment_analytics.deep_symbolize_keys

        self.write_key = secrets[:write_key]
      else
        self.write_key = ''
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
workarea-segment_analytics-1.0.3 lib/workarea/segment_analytics.rb
workarea-segment_analytics-1.0.2 lib/workarea/segment_analytics.rb