Created
September 9, 2014 22:06
-
-
Save smdern/56f27c2e325326eb3282 to your computer and use it in GitHub Desktop.
This file contains 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 QuestionSetsQuery | |
def self.run(id:) | |
new(id: id).run | |
end | |
def run | |
query.extra_includes | |
end | |
def query | |
QuestionSet.where(stuff) | |
end | |
def extra_includes | |
// conditional includes here | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment