Skip to content

Instantly share code, notes, and snippets.

@smdern
Created September 9, 2014 22:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save smdern/56f27c2e325326eb3282 to your computer and use it in GitHub Desktop.
Save smdern/56f27c2e325326eb3282 to your computer and use it in GitHub Desktop.
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