Sha256: 5e407490d394ec1f179654cd42e212c30bdb9ea1cac5b3d9c5d0b1fd466c8054

Contents?: true

Size: 1.37 KB

Versions: 10

Compression:

Stored size: 1.37 KB

Contents

module OptimacmsBackups
  class Engine < ::Rails::Engine
    isolate_namespace OptimacmsBackups

    config.watchable_dirs['lib'] = [:rb] if Rails.env.development?
    #config.watchable_dirs['app/helpers'] = [:rb] if Rails.env.development?

    #config.autoload_paths << File.expand_path("../lib/some/path", __FILE__)
    #config.autoload_paths << File.expand_path("../lib/optimacms/path", __FILE__)

#    config.autoload_paths += Dir["#{OptimacmsBackups::Engine.root}/app/helpers/"]
#    config.autoload_paths += Dir["#{OptimacmsBackups::Engine.root}/app/helpers/**/"]



    config.autoload_paths += Dir["#{OptimacmsBackups::Engine.root}/lib/"]
    config.autoload_paths += Dir["#{OptimacmsBackups::Engine.root}/lib/**/"]

    #config.autoload_paths += Dir["#{Optimacms::Engine.root}/lib/concerns/"]
    #config.autoload_paths += Dir["#{Optimacms::Engine.root}/lib/concerns/**/"]

    config.autoload_paths += Dir["#{OptimacmsBackups::Engine.root}/lib/optimacms_backups/"]
    config.autoload_paths += Dir["#{OptimacmsBackups::Engine.root}/lib/optimacms_backups/**/"]

    #config.autoload_paths += Dir["#{config.root}/lib/**/"]
    #config.autoload_paths += Dir["#{config.root}/lib/"]
    #config.autoload_paths += Dir["#{config.root}/lib/**/*.rb"]


    config.generators do |g|
      g.test_framework :rspec
      g.fixture_replacement :factory_girl, :dir => 'spec/factories'
    end



  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
optimacms_backups-0.0.14 lib/optimacms_backups/engine.rb
optimacms_backups-0.0.13 lib/optimacms_backups/engine.rb
optimacms_backups-0.0.12 lib/optimacms_backups/engine.rb
optimacms_backups-0.0.7 lib/optimacms_backups/engine.rb
optimacms_backups-0.0.6 lib/optimacms_backups/engine.rb
optimacms_backups-0.0.5 lib/optimacms_backups/engine.rb
optimacms_backups-0.0.4 lib/optimacms_backups/engine.rb
optimacms_backups-0.0.3 lib/optimacms_backups/engine.rb
optimacms_backups-0.0.2 lib/optimacms_backups/engine.rb
optimacms_backups-0.0.1 lib/optimacms_backups/engine.rb