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
|
||||
class Railtie < ::Rails::Railtie
|
||||
if(defined? Rails)
|
||||
silence_warnings do
|
||||
begin
|
||||
require 'pry'
|
||||
|
@ -9,6 +10,7 @@ module PryRails
|
|||
rescue LoadError
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
module PryRails
|
||||
VERSION = "0.0.1"
|
||||
VERSION = "0.0.2"
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue