lib/faalis/engine.rb in faalis-2.0.8 vs lib/faalis/engine.rb in faalis-2.1.0
- old
+ new
@@ -16,18 +16,18 @@
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
# -----------------------------------------------------------------------------
require_relative './middlewares/locale'
+require_relative './configuration'
module Faalis
# `Engine` class of **Faalis**.
class Engine < ::Rails::Engine
+ extend ::Faalis::Configuration
- extend Faalis::Configuration
-
# TODO: Add a facility to allow developers to select
# features of faalis
isolate_namespace Faalis
engine_name 'faalis'
@@ -36,18 +36,20 @@
inflect.acronym 'API'
inflect.acronym 'DSL'
end
config.generators do |g|
- g.test_framework :rspec, fixture: false
- g.fixture_replacement :factory_girl, dir: 'spec/factories'
- g.integration_tool :rspec
+ g.test_framework :minitest, fixture_replacement: :fabrication
+ g.fixture_replacement :fabrication, dir: "test/fabricators"
+ g.integration_tool :minitest
g.assets false
g.helper false
end
def self.setup
yield self
+
+ load_dependencies_based_on_configuration
end
# Override devise layout
config.to_prepare do
Devise::SessionsController.layout 'faalis/simple'