Sha256: 35c2c9b878b9a97501a8b50a40ed0411a629033bdbbc9201015bf3d8858ff7bd
Contents?: true
Size: 885 Bytes
Versions: 7
Compression:
Stored size: 885 Bytes
Contents
# frozen_string_literal: true require 'eac_ruby_utils/core_ext' module EacRailsUtils module EngineHelper class << self # @return [EacRailsUtils::Menus::Group] def root_menu @root_menu ||= ::EacRailsUtils::Menus::Group.new(:root) end end common_concern do append_autoload_paths append_self_migrations end module ClassMethods def append_autoload_paths config.autoload_paths += Dir["#{config.root}/lib/**/"] end def append_self_migrations initializer :append_migrations do |app| config.paths['db/migrate'].expanded.each do |expanded_path| app.config.paths['db/migrate'] << expanded_path end end end # @return [EacRailsUtils::Menus::Group] def root_menu ::EacRailsUtils::EnginesHelper.root_menu end end end end
Version data entries
7 entries across 7 versions & 1 rubygems