mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
credit where it is due
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
# can be used to generate a mock db for profiling purposes
|
# can be used to generate a mock db for profiling purposes
|
||||||
|
|
||||||
# Include this in your .irbrc
|
# based on https://gist.github.com/zaius/2643079
|
||||||
def unbundled_require(gem)
|
def unbundled_require(gem)
|
||||||
if defined?(::Bundler)
|
if defined?(::Bundler)
|
||||||
spec_path = Dir.glob("#{Gem.dir}/specifications/#{gem}-*.gemspec").last
|
spec_path = Dir.glob("#{Gem.dir}/specifications/#{gem}-*.gemspec").last
|
||||||
|
|||||||
Reference in New Issue
Block a user