Skip to content

Instantly share code, notes, and snippets.

@divoxx
Last active March 28, 2026 22:34
Show Gist options
  • Select an option

  • Save divoxx/5315040 to your computer and use it in GitHub Desktop.

Select an option

Save divoxx/5315040 to your computer and use it in GitHub Desktop.
Then anyone could have group "user@email.com" do end
groups = Rails.groups(assets: %w(development test))
unless Rails.env.production?
user = `cd "#{Rails.root}" && git config user.email`.chomp
groups << user unless user.blank?
end
Bundler.require(*groups)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment