Sha256: 7b800f185f92b68fc7295ac675d02aa0f0f6c4892b33a5f27980b339f16911a7

Contents?: true

Size: 366 Bytes

Versions: 2

Compression:

Stored size: 366 Bytes

Contents

module Rack
  module RedisAnalytics
    class Railtie < Rails::Railtie
      initializer "redis_analytics.middleware" do |app|
        app.config.middleware.use "Rack::RedisAnalytics::Tracker"
      end
      
      initializer "redis_analytics.view_helpers" do
        ActionController::Base.send :include, Rack::RedisAnalytics::Helpers
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
redis_analytics-0.6.0 lib/redis_analytics/railtie.rb
redis_analytics-0.1.0 lib/redis_analytics/railtie.rb