class ApplicationController < ActionController::Base
def resource_class
controller_path.classify.constantize
end
Powered by TurnKey Linux.