Skip to content

Instantly share code, notes, and snippets.

View stefanjcollier's full-sized avatar

Stefan Collier stefanjcollier

View GitHub Profile
@jaydorsey
jaydorsey / private_bundle_install_gist.md
Last active April 28, 2025 23:49
Setting up a github/bundle token for privately hosted repos

If your Gemfile has a privately hosted package referenced similar to this:

gem 'sekret', git: 'https://github.com/my-private-group/sekret.git', branch: 'main'

You may see a prompt when running bundle install, or other bundler commands, to enter your github username & password.

To resolve this, you need to generate a token and add it to your system.

Generating a token

@phlegx
phlegx / Rails 4 - how to give alias names to includes() and joins() in active record quering
Last active May 8, 2025 17:02
Rails 4 - how to give alias names to includes() and joins() in active record quering
See question on stack overflow: http://stackoverflow.com/questions/28595636/rails-4-how-to-give-alias-names-to-includes-and-joins-in-active-record-que
- Model Student and model Teacher are both STI models with super class model User
- Model Story is a STI model with super class model Task
- includes() and joins(), both fails
Rails alias naming convention (includes() and joins())
- One model as parameter
- is base model (includes(:users))