mwalsh2020 / lsat-cracked

1 stars 0 forks source link

Change Admin Namespace to Manage to avoid conflicts with Administrate Gem #185

Closed caioertai closed 3 years ago

caioertai commented 3 years ago

I'm keeping this separate from the #175 PR since it's essentially a refactor job.

I had to use a shitload of regexes to help me with the search and replace tasks, like:

(render[\s(]+["'])admin/(.*)
Admin(::\w+Policy)
(policy.*):admin
(form_for.*):admin
(policy_scope.*):admin
(redirect_to.*):admin
(authorize.*):admin
(admin_)(.*_path)
(Admin::)(\w+)(Controller)

Fun stuff. :tada: