Sha256: 8c3785c77fda9ce5023bf0140a5bff84b284fb7e4f3638d4d0deca0c71e62973

Contents?: true

Size: 344 Bytes

Versions: 3

Compression:

Stored size: 344 Bytes

Contents

module Mrcr
  module Helpers
    module AssetsHelper
      class << self
        def build_url
          "http#{'s' if https?}://#{ ENV['ASSETS_ENDPOINT'] }"
        end

        def https?
          ENV['ASSETS_HTTPS'] == '1'
        end

        def endpoint?
          ENV['ASSETS_ENDPOINT'].present?
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
mrcr-helpers-0.1.2 lib/mrcr/helpers/assets_helper.rb
mrcr-helpers-0.1.1 lib/mrcr/helpers/assets_helper.rb
mrcr-helpers-0.1.0 lib/mrcr/helpers/assets_helper.rb