Sha256: e57da20f354603cd1c093c98387daca1bb5140b1f2897ef0076e6ee84c588ff8

Contents?: true

Size: 686 Bytes

Versions: 7

Compression:

Stored size: 686 Bytes

Contents

require 'rubygems'
require 'to_xls'

module AuditRails
  class Engine < ::Rails::Engine
    isolate_namespace AuditRails

    initializer :append_dependent_assets_path, :group => :all do |app| 
      require 'sleek_charts'
      engine_root = SleekCharts::Engine.root
      app.config.assets.paths.push(engine_root + 'app/assets/javascripts')
      app.config.assets.paths.push(engine_root + 'app/assets/stylesheets')
    end

    initializer "audit_rails.load_helpers" do |app|
      ActionController::Base.send :include, AuditRails::AuditsHelper
    end
    
    config.generators do |g|
      g.test_framework      :rspec
      g.assets false
      g.helper false
    end

  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
audit_rails-2.0.10 lib/audit_rails/engine.rb
audit_rails-2.0.9 lib/audit_rails/engine.rb
audit_rails-2.0.8 lib/audit_rails/engine.rb
audit_rails-2.0.7 lib/audit_rails/engine.rb
audit_rails-2.0.6 lib/audit_rails/engine.rb
audit_rails-2.0.5 lib/audit_rails/engine.rb
audit_rails-2.0.4 lib/audit_rails/engine.rb