lib/integral/engine.rb in integral-1.3.0 vs lib/integral/engine.rb in integral-1.4.0
- old
+ new
@@ -33,18 +33,18 @@
require 'meta-tags'
require 'sitemap_generator'
# require 'before_render'
require 'friendly_id'
require 'acts-as-taggable-on'
- require 'slack-notifier'
require 'paranoia'
require 'inky'
require 'premailer/rails'
require 'will_paginate'
require 'will_paginate-foundation'
require 'rails-settings-cached'
require 'gaffe'
+ require 'fast_jsonapi'
isolate_namespace Integral
config.generators do |g|
g.test_framework :rspec
@@ -71,10 +71,10 @@
config.action_controller.include_all_helpers = false
# Allows engine factories to be reused by application
initializer 'model_core.factories', after: 'factory_bot.set_factory_paths' do
if defined?(FactoryBot)
- FactoryBot.definition_file_paths << File.expand_path('../../../spec/factories', __FILE__)
+ FactoryBot.definition_file_paths << File.expand_path('../../spec/factories', __dir__)
end
end
initializer 'integral.assets.precompile' do |app|
assets_for_precompile = [