module Mrcr::Helpers::AssetsHelper
Public Class Methods
build_url()
click to toggle source
# File lib/mrcr/helpers/assets_helper.rb, line 5 def build_url "http#{'s' if https?}://#{ ENV['ASSETS_ENDPOINT'] }" end
endpoint?()
click to toggle source
# File lib/mrcr/helpers/assets_helper.rb, line 13 def endpoint? ENV['ASSETS_ENDPOINT'].present? end
https?()
click to toggle source
# File lib/mrcr/helpers/assets_helper.rb, line 9 def https? ENV['ASSETS_HTTPS'] == '1' end