mirror of
https://github.com/pry/pry-rails.git
synced 2022-11-09 12:36:03 -05:00
ensure Rails env
This commit is contained in:
parent
61fd6842f1
commit
3700654cc3
2 changed files with 3 additions and 1 deletions
|
@ -2,6 +2,7 @@ require "pry-rails/version"
|
||||||
|
|
||||||
module PryRails
|
module PryRails
|
||||||
class Railtie < ::Rails::Railtie
|
class Railtie < ::Rails::Railtie
|
||||||
|
if(defined? Rails)
|
||||||
silence_warnings do
|
silence_warnings do
|
||||||
begin
|
begin
|
||||||
require 'pry'
|
require 'pry'
|
||||||
|
@ -9,6 +10,7 @@ module PryRails
|
||||||
rescue LoadError
|
rescue LoadError
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
module PryRails
|
module PryRails
|
||||||
VERSION = "0.0.1"
|
VERSION = "0.0.2"
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue