We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c5f8043 commit 52f798aCopy full SHA for 52f798a
lib/js_routes/route.rb
@@ -194,7 +194,9 @@ def apply_case(*values)
194
sig { params(spec: SpecNode, parent_spec: T.nilable(RouteSpec)).returns(T.nilable(T.any(UntypedArray, String))) }
195
def serialize(spec, parent_spec=nil)
196
return nil unless spec
197
- # Rails 4 globbing requires * removal
+ # Removing special character prefix from route variable name
198
+ # * for globbing
199
+ # : for common parameter
200
return spec.tr(':*', '') if spec.is_a?(String)
201
202
result = serialize_spec(spec, parent_spec)
0 commit comments