Sha256: 67d54983724d2eaa05aade31d9c99422fee3679880a74a1fe117ba8b40fd62b8
Contents?: true
Size: 855 Bytes
Versions: 8
Compression:
Stored size: 855 Bytes
Contents
# frozen_string_literal: true module <%= class_name %> class Engine < ::Rails::Engine require "archangel" isolate_namespace Archangel engine_name "<%= extension_name %>" config.generators do |gen| gen.test_framework :rspec, fixtures: false, view_specs: false, helper_specs: true, routing_specs: false, controller_specs: true, request_specs: true gen.fixture_replacement :factory_bot, dir: "spec/factories" end def self.activate Dir[File.join(__dir__, "../../app/**/*_decorator*.rb")].each do |klass| Rails.application.config.cache_classes ? require(klass) : load(klass) end end config.to_prepare(&method(:activate).to_proc) end end
Version data entries
8 entries across 8 versions & 1 rubygems