Guest User

Untitled

a guest
Jun 20th, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.19 KB | None | 0 0
  1. def controllers
  2.   Object.constants.find_all do |c|
  3.     c.match(/Controller$/) &&
  4.     Object.const_get(c).is_a?(Class) &&
  5.     Object.const_get(c).superclass == ApplicationController
  6.   end
  7. end
Add Comment
Please, Sign In to add comment