@@ -16,22 +16,22 @@ class Route < ActiveRecord::Base
...
@@ -16,22 +16,22 @@ 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)}/%/%")}