Sha256: 6c6ec48b83d352a51840ed325952165b5328e2fb528f10c0f67c8db759d97242

Contents?: true

Size: 830 Bytes

Versions: 2

Compression:

Stored size: 830 Bytes

Contents

module ActiveTracker
  class Engine < ::Rails::Engine
    isolate_namespace ActiveTracker
    config.autoload_paths += Dir["#{config.root}/lib/**/"]

    initializer 'active_tracker_helper.action_controller' do
      ActiveSupport.on_load :action_controller do
        helper ActiveTracker::ImagesHelper
        helper ActiveTracker::ApplicationHelper
        helper ActiveTracker::PaginationHelper
        helper ActiveTracker::OutputHelper
      end
    end

    config.generators do |g|
      g.test_framework :rspec, fixture: false
      g.fixture_replacement :factory_girl, dir: 'spec/factories'
      g.assets false
      g.helper false
    end

    if defined?(config.assets)
      config.assets.precompile += %w(active_tracker_manifest active_tracker/active_tracker.js active_tracker/active_tracker.css)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
activetracker-0.4.2 lib/active_tracker/engine.rb
activetracker-0.4.1 lib/active_tracker/engine.rb