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

Version Path
neeto-commons-backend-1.0.109 lib/neeto_commons_backend/helpers/neeto_widget_helper.rb
neeto-commons-backend-1.0.108 lib/neeto_commons_backend/helpers/neeto_widget_helper.rb
neeto-commons-backend-1.0.107 lib/neeto_commons_backend/helpers/neeto_widget_helper.rb
neeto-commons-backend-1.0.106 lib/neeto_commons_backend/helpers/neeto_widget_helper.rb
neeto-commons-backend-1.0.105 lib/neeto_commons_backend/helpers/neeto_widget_helper.rb
neeto-commons-backend-1.0.104 lib/neeto_commons_backend/helpers/neeto_widget_helper.rb
neeto-commons-backend-1.0.103 lib/neeto_commons_backend/helpers/neeto_widget_helper.rb
neeto-commons-backend-1.0.102 lib/neeto_commons_backend/helpers/neeto_widget_helper.rb
neeto-commons-backend-1.0.101 lib/neeto_commons_backend/helpers/neeto_widget_helper.rb
neeto-commons-backend-1.0.100 lib/neeto_commons_backend/helpers/neeto_widget_helper.rb
neeto-commons-backend-1.0.99 lib/neeto_commons_backend/helpers/neeto_widget_helper.rb
neeto-commons-backend-1.0.98 lib/neeto_commons_backend/helpers/neeto_widget_helper.rb
neeto-commons-backend-1.0.97 lib/neeto_commons_backend/helpers/neeto_widget_helper.rb
neeto-commons-backend-1.0.96 lib/neeto_commons_backend/helpers/neeto_widget_helper.rb
neeto-commons-backend-1.0.95 lib/neeto_commons_backend/helpers/neeto_widget_helper.rb
neeto-commons-backend-1.0.94 lib/neeto_commons_backend/helpers/neeto_widget_helper.rb
neeto-commons-backend-1.0.93 lib/neeto_commons_backend/helpers/neeto_widget_helper.rb
neeto-commons-backend-1.0.92 lib/neeto_commons_backend/helpers/neeto_widget_helper.rb
neeto-commons-backend-1.0.91 lib/neeto_commons_backend/helpers/neeto_widget_helper.rb
neeto-commons-backend-1.0.90 lib/neeto_commons_backend/helpers/neeto_widget_helper.rb