Created
December 20, 2012 14:15
-
-
Save AndrewRadev/4345520 to your computer and use it in GitHub Desktop.
Use 'ack' to search through all the gems in the project. Call with "bundle exec ack-gems".
This file contains hidden or 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
#! /usr/bin/env ruby | |
require 'bundler' | |
paths = Bundler.load.specs.map(&:full_gem_path) | |
system("ack '#{ARGV[0]}' #{paths.join(' ')}") |
ack/ag ActiveRecord::Base bundle show --paths
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Genious!