Created
April 22, 2016 05:44
-
-
Save mathie/7c277bd0a6570e5e704104a65c584bb8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class NodesController < ActionController::Base | |
def index | |
@nodes = Node.roots.eager_load(:descendants) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment