Sha256: 4776a44c68017c205ca441aab3697099011f7700814bd586e94211b0c2df855b

Contents?: true

Size: 730 Bytes

Versions: 1

Compression:

Stored size: 730 Bytes

Contents

require 'rails'

# An engine doesn't require it's own dependencies automatically. We also don't
# want the applications to have to do that.
require 'cancan'
require 'authlogic'
require 'kaminari'
require 'iq_rdf'
require 'json'
require 'rails_autolink'

require 'iqvoc/controller_extensions'

module Iqvoc

  class Engine < Rails::Engine
    paths["lib/tasks"] << "lib/engine_tasks"

    initializer "iqvoc.mixin_controller_extensions" do |app|
      if Kernel.const_defined?(:ApplicationController)
        ApplicationController.send(:include, Iqvoc::ControllerExtensions)
      end
    end

    initializer "iqvoc.add_assets_to_precompilation" do |app|
      app.config.assets.precompile += Iqvoc.core_assets
    end
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
iqvoc-3.5.4 config/engine.rb