Sha256: a938f627ccbfa6277bc59c4e2f434055811995818ef2d967ae639f077e99207a

Contents?: true

Size: 948 Bytes

Versions: 6

Compression:

Stored size: 948 Bytes

Contents

require 'devise'

module Fae
  class Engine < ::Rails::Engine
    isolate_namespace Fae

    # include libraries
    require 'simple_form'
    require 'remotipart'
    require 'jquery-rails'
    require 'jquery-ui-rails'
    require 'judge'
    require 'judge/simple_form'
    require 'acts_as_list'
    require 'slim'
    require 'kaminari'
    require 'fae/version'

    config.autoload_paths += %W(#{config.root}/lib)

    config.to_prepare do
      # Require decorators from main application
      Dir.glob(Rails.root.join('app', 'decorators', '**', '*_decorator.rb')).each do |decorator|
        Rails.configuration.cache_classes ? require(decorator) : load(decorator)
      end

      ApplicationController.helper(ApplicationHelper)
    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
  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
fae-rails-2.2.0 lib/fae/engine.rb
fae-rails-2.1.0 lib/fae/engine.rb
fae-railsz-2.1.0 lib/fae/engine.rb
fae-rails-2.0.0 lib/fae/engine.rb
fae-rails-1.7.1 lib/fae/engine.rb
fae-rails-1.7.0 lib/fae/engine.rb