I suggest to put this method here in application_controller, even though puppetclasses#edit is current that only action that calls it