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