Sha256: 018cf6867b6fff24a1641031fefdcec128e8d2925410e52ceba8478e91efa76b

Contents?: true

Size: 1.13 KB

Versions: 4

Compression:

Stored size: 1.13 KB

Contents

module OpenConferenceWare
  class Engine < ::Rails::Engine
    isolate_namespace OpenConferenceWare

    config.autoload_paths += [
      root.join('app','mixins').to_s,
      root.join('app','observers').to_s,
      root.join('lib').to_s
    ]

    # Activate observers that should always be running.
    config.active_record.observers = "OpenConferenceWare::CacheWatcher"

    initializer "open_conference_ware.assets.precompile" do |app|
      # Precompile IE-only assets
      app.config.assets.precompile += ['ie.js']

      # Include vendored image, font, and flash assets when precompiling
      app.config.assets.precompile += %w(*.png *.jpg *.jpeg *.gif *.eot *.svg *.ttf *.woff *.swf)
    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

    initializer :append_migrations do |app|
      unless app.root.to_s.match root.to_s
        config.paths["db/migrate"].expanded.each do |expanded_path|
          app.config.paths["db/migrate"] << expanded_path
        end
      end
    end

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
open_conference_ware-1.0.0.pre4 lib/open_conference_ware/engine.rb
open_conference_ware-1.0.0.pre3 lib/open_conference_ware/engine.rb
open_conference_ware-1.0.0.pre2 lib/open_conference_ware/engine.rb
open_conference_ware-1.0.0.pre1 lib/open_conference_ware/engine.rb