lib/recruiter/engine.rb in recruiter-0.0.1 vs lib/recruiter/engine.rb in recruiter-0.0.2
- old
+ new
@@ -1,5 +1,36 @@
module Recruiter
class Engine < ::Rails::Engine
isolate_namespace Recruiter
+
+ config.generators do |generate|
+ generate.decorator false
+ generate.helper false
+ generate.javascript_engine false
+ generate.request_specs false
+ generate.routing_specs true
+ generate.stylesheets false
+ generate.test_framework :rspec
+ generate.integration_tool :rspec
+ generate.view_specs false
+ generate.fixture_replacement :machinist
+ end
+
+ config.to_prepare do
+ [
+ Recruiter::CrudFlashMessagerHelper,
+ Recruiter::FormHelper,
+ Recruiter::HeaderHelper,
+ Recruiter::IconsHelper,
+ Recruiter::LinksHelper,
+ Recruiter::MarkdownHelper,
+ Recruiter::OauthProvidersHelper,
+ ].each do |helper|
+ ApplicationController.helper(helper)
+ end
+
+ Dir.glob(Rails.root + "app/decorators/**/*_decorator*.rb").each do |c|
+ require_dependency(c)
+ end
+ end
end
end