Skip to content

Instantly share code, notes, and snippets.

@crisward
Created November 24, 2016 09:33
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 crisward/0ee0c2beeb28588157d635387adf0047 to your computer and use it in GitHub Desktop.
Save crisward/0ee0c2beeb28588157d635387adf0047 to your computer and use it in GitHub Desktop.
testing crystal
Module App
Class UserService
initialize(@orgService : OrgService)
end
def get(id)
db.sql("select * from users where id = ?")
#....
user.org = @orgService.get(user.org_id)
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment