1
0
Fork 0
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:
Robin Wenglewski 2011-08-28 11:43:49 +02:00
parent 61fd6842f1
commit 3700654cc3
2 changed files with 3 additions and 1 deletions

View file

@ -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

View file

@ -1,3 +1,3 @@
module PryRails module PryRails
VERSION = "0.0.1" VERSION = "0.0.2"
end end