Sha256: 5e24b14662709f007a5642a9806c29dc91ab595c3bc282f4d8e2bd8d3ec80db4
Contents?: true
Size: 1.24 KB
Versions: 3
Compression:
Stored size: 1.24 KB
Contents
# frozen_string_literal: true # Copyright (c) 2008-2013 Michael Dvorkin and contributors. # # Fat Free CRM is freely distributable under the terms of MIT license. # See MIT-LICENSE file or http://www.opensource.org/licenses/mit-license.php #------------------------------------------------------------------------------ module FatFreeCRM class Engine < ::Rails::Engine config.autoload_paths += Dir[root.join("app/models/**")] + Dir[root.join("app/controllers/entities")] config.active_record.observers = %i[lead_observer opportunity_observer task_observer entity_observer] initializer "model_core.factories", after: "factory_bot.set_factory_paths" do FactoryBot.definition_file_paths << File.expand_path('../../../spec/factories', __FILE__) if defined?(FactoryBot) end initializer :append_migrations do |app| unless app.root.to_s == root.to_s config.paths["db/migrate"].expanded.each do |expanded_path| app.config.paths["db/migrate"] << expanded_path end end end config.to_prepare do Dir.glob(Rails.root + "app/decorators/**/*_decorator*.rb").each do |c| require_dependency(c) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
fat_free_crm-0.18.2 | lib/fat_free_crm/engine.rb |
fat_free_crm-0.18.1 | lib/fat_free_crm/engine.rb |
fat_free_crm-0.18.0 | lib/fat_free_crm/engine.rb |