Sha256: d72e432ae93c3369bb761bad8719eeacdb88ac9ea839a15c44c04d7744a51267

Contents?: true

Size: 728 Bytes

Versions: 22

Compression:

Stored size: 728 Bytes

Contents

module RailsConnector
  # @api public
  class Configuration

    # This module is an extension to the rails connector configuration.
    #
    # Configuration example:
    #
    #     RailsConnector::Configuration::GoogleAnalytics.domains(
    #       'www.example.de' => 'UA-example-1',
    #       'www.example.com' => 'UA-example-2'
    #     )
    # @api public
    module GoogleAnalytics
      @@domains = {}

      def self.domains=(domains_and_codes)
        @@domains = @@domains.merge(domains_and_codes)
      end

      # @api public
      def self.domains(domains_and_codes)
        self.domains = domains_and_codes
      end

      def self.domain_code(domain)
        @@domains[domain]
      end
    end

  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
infopark_rails_connector-6.8.3.174.51542603 lib/rails_connector/configuration/google_analytics.rb
infopark_rails_connector-6.8.3.115.227021242 lib/rails_connector/configuration/google_analytics.rb
infopark_rails_connector-6.8.3.73.75172665 lib/rails_connector/configuration/google_analytics.rb
infopark_rails_connector-6.8.3.2.153416031 lib/rails_connector/configuration/google_analytics.rb
infopark_rails_connector-6.8.3.67.110847540 lib/rails_connector/configuration/google_analytics.rb
infopark_rails_connector-6.8.3.1.23895778 lib/rails_connector/configuration/google_analytics.rb
infopark_rails_connector-6.8.2.36.82613853 lib/rails_connector/configuration/google_analytics.rb
infopark_rails_connector-6.8.2.7.128454143 lib/rails_connector/configuration/google_analytics.rb
infopark_rails_connector-6.8.1.26.236500544 lib/rails_connector/configuration/google_analytics.rb
infopark_rails_connector-6.8.1 lib/rails_connector/configuration/google_analytics.rb
infopark_rails_connector-6.8.0.539.93842523 lib/rails_connector/configuration/google_analytics.rb
infopark_rails_connector-6.8.0.529.114081979 lib/rails_connector/configuration/google_analytics.rb
infopark_rails_connector-6.8.0.518.30999728 lib/rails_connector/configuration/google_analytics.rb
infopark_rails_connector-6.8.0.515.34928522 lib/rails_connector/configuration/google_analytics.rb
infopark_rails_connector-6.8.0.498.46559598 lib/rails_connector/configuration/google_analytics.rb
infopark_rails_connector-6.8.0.480.261594408 lib/rails_connector/configuration/google_analytics.rb
infopark_rails_connector-6.8.0.444.171626367 lib/rails_connector/configuration/google_analytics.rb
infopark_rails_connector-6.8.0.406.131718077 lib/rails_connector/configuration/google_analytics.rb
infopark_rails_connector-6.8.0.356.19698103 lib/rails_connector/configuration/google_analytics.rb
infopark_rails_connector-6.8.0.348.160665197 lib/rails_connector/configuration/google_analytics.rb