Skip to content

Instantly share code, notes, and snippets.

@phoozle
Created July 11, 2024 00:06
Show Gist options
  • Save phoozle/bcee98c7ec0e8a68db056f859aec7900 to your computer and use it in GitHub Desktop.
Save phoozle/bcee98c7ec0e8a68db056f859aec7900 to your computer and use it in GitHub Desktop.
Rails 7 enum syntax upgrade regexp
Find: enum (\w+): ({[^\}]*})
Replace: enum :$1, $2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment