Sha256: d8cb691f40cbbe7c8c5baff8f247af6fc7c67eff10f50613848d80ad0404ecfa
Contents?: true
Size: 555 Bytes
Versions: 21
Compression:
Stored size: 555 Bytes
Contents
# frozen_string_literal: true module NeetoCommonsBackend module Helpers class << self def build_neeto_widget_script_url widget_urls = { production: "https://d13nryxs46eypn.cloudfront.net/neeto-widget.js", staging: "https://d13nryxs46eypn.cloudfront.net/neeto-widget-staging.js" } Rails.env == "production" ? widget_urls[:production] : widget_urls[:staging] end def get_neeto_widget_environment Rails.env == "production" ? "production" : "staging" end end end end
Version data entries
21 entries across 21 versions & 1 rubygems