@@ -16,7 +16,8 @@ class Route < ActiveRecord::Base
...
@@ -16,7 +16,8 @@ class Route < ActiveRecord::Base
scope:direct_descendant_routes,->(path){where('routes.path LIKE ? AND routes.path NOT LIKE ?',"#{sanitize_sql_like(path)}/%","#{sanitize_sql_like(path)}/%/%")}
scope:direct_descendant_routes,->(path){where('routes.path LIKE ? AND routes.path NOT LIKE ?',"#{sanitize_sql_like(path)}/%","#{sanitize_sql_like(path)}/%/%")}