Sha256: 94d7403218556de6ceb5f8f92ce02cac7478fc5ef9c929de380e06b289eeb2d2
Contents?: true
Size: 881 Bytes
Versions: 4
Compression:
Stored size: 881 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
4 entries across 4 versions & 1 rubygems