Sha256: 6ed2a3a300fbdc143106086e3d1092391b93ba93a37f6cdd95a3f50a4be86f82

Contents?: true

Size: 455 Bytes

Versions: 1

Compression:

Stored size: 455 Bytes

Contents

require 'rails'
require 'jquery-rails'

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
redis_analytics-0.7.1 lib/redis_analytics/engine.rb