Sha256: 2d27201079997fbc72b11ece0dabf432c11577150aa0633a4dfcd2f553daf9ac
Contents?: true
Size: 390 Bytes
Versions: 1
Compression:
Stored size: 390 Bytes
Contents
module Smooch #API_KEY = '' end begin config = YAML.load_file("#{RAILS_ROOT}/config/kissmetrics.yml") Smooch::API_KEY = config[RAILS_ENV]['apikey'] if config[RAILS_ENV] rescue puts "Error opening KISSmetrics configuration file." end require 'smooch/base' require 'smooch/helpers' require 'smooch/controller' ActionController::Base.class_eval do extend Smooch::Controller end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
smooch-0.1.2 | lib/smooch.rb |