Just curious as to why this happens in the rails console:
Loading development environment (Rails 4.1.5)
2.1.2 :001 > require 'application_controller'
=> true
2.1.2 :002 > ApplicationController
=> ApplicationController
2.1.2 :003 > ApplicationController.subclasses
=> []
2.1.2 :004 > ::ApplicationController.descendants
=> []
I have this controller
class MyController < ApplicationController
end
So I'm expecting ApplicationController.subclasses #=> [MyController]
, however, I'm getting an empty array :(