lib/optimacms_options/engine.rb in optimacms_options-0.0.4 vs lib/optimacms_options/engine.rb in optimacms_options-0.0.5
- old
+ new
@@ -1,38 +1,38 @@
-module OptimacmsOptions
- class Engine < ::Rails::Engine
- isolate_namespace OptimacmsOptions
-
- 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["#{OptimacmsOptions::Engine.root}/app/helpers/"]
-# config.autoload_paths += Dir["#{OptimacmsOptions::Engine.root}/app/helpers/**/"]
-
-
-
- config.autoload_paths += Dir["#{OptimacmsOptions::Engine.root}/lib/"]
- config.autoload_paths += Dir["#{OptimacmsOptions::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["#{OptimacmsOptions::Engine.root}/lib/optimacms_options/"]
- config.autoload_paths += Dir["#{OptimacmsOptions::Engine.root}/lib/optimacms_options/**/"]
-
- #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
+module OptimacmsOptions
+ class Engine < ::Rails::Engine
+ isolate_namespace OptimacmsOptions
+
+ 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["#{OptimacmsOptions::Engine.root}/app/helpers/"]
+# config.autoload_paths += Dir["#{OptimacmsOptions::Engine.root}/app/helpers/**/"]
+
+
+
+ config.autoload_paths += Dir["#{OptimacmsOptions::Engine.root}/lib/"]
+ config.autoload_paths += Dir["#{OptimacmsOptions::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["#{OptimacmsOptions::Engine.root}/lib/optimacms_options/"]
+ config.autoload_paths += Dir["#{OptimacmsOptions::Engine.root}/lib/optimacms_options/**/"]
+
+ #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