app/operators/lesli/controller_operator.rb in lesli-5.0.11 vs app/operators/lesli/controller_operator.rb in lesli-5.0.13

- old
+ new

@@ -17,11 +17,11 @@ You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/. Lesli · Ruby on Rails SaaS Development Framework. -Made with ♥ by https://www.lesli.tech +Made with ♥ by LesliTech Building a better future, one line of code at a time. @contact hello@lesli.tech @website https://www.lesli.tech @license GPLv3 http://www.gnu.org/licenses/gpl-3.0.en.html @@ -117,9 +117,12 @@ end # Get the list of controllers and actions from engines Lesli::System.engines.each do |engine, engine_info| + + # Do not process main Rails app + next if engine == "Root" # load and retrieve the list of controllers and actions from an engine routes = "#{engine}::Engine".constantize.routes.routes.each do |route| route = route.defaults