Sha256: bdf4a37a114f42b39681d4c31ae3ebcdb49b50ffb03dfe181e80ef08366fd0df

Contents?: true

Size: 880 Bytes

Versions: 13

Compression:

Stored size: 880 Bytes

Contents

require 'kaminari'
require 'responders'
require 'inherited_resources'
require 'simple_form'
require 'jquery-rails'
require 'zurb-foundation'
require 'devise'
require 'slim'
require 'search_object'

module Manage
  class Engine < ::Rails::Engine
    isolate_namespace Manage

    config.generators do |g|
      g.test_framework :rspec, :fixture => false
      g.assets false
      g.helper false
    end

    initializer "manage.load_app_root" do |app|
      Manage.app_root = app.root
    end

    config.after_initialize do
      my_engine_root = Manage::Engine.root.to_s
      paths = ActionController::Base.view_paths.collect{|p| p.to_s}

      custom_resources =  File.join(my_engine_root, '/app/views/manage/resource')
      paths = paths.insert(paths.index(my_engine_root + '/app/views'), custom_resources)
      ActionController::Base.view_paths = paths
    end

  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
manage-1.4.3 lib/manage/engine.rb
manage-1.4.2 lib/manage/engine.rb
manage-1.4.1 lib/manage/engine.rb
manage-1.4 lib/manage/engine.rb
manage-1.3.52 lib/manage/engine.rb
manage-1.3.51 lib/manage/engine.rb
manage-1.3.50 lib/manage/engine.rb
manage-1.3.49 lib/manage/engine.rb
manage-1.3.48 lib/manage/engine.rb
manage-1.3.47 lib/manage/engine.rb
manage-1.3.46 lib/manage/engine.rb
manage-1.3.45 lib/manage/engine.rb
manage-1.3.44 lib/manage/engine.rb