1
0
Fork 0
mirror of https://github.com/pry/pry-rails.git synced 2022-11-09 12:36:03 -05:00

works for Rails >= 3

This commit is contained in:
Robin Wenglewski 2011-08-30 01:24:13 +02:00
parent 1fd88d3cf7
commit ec9068a2de

View file

@ -1,7 +1,7 @@
require "pry-rails/version"
module PryRails
if(defined?(::Rails) and ::Rails.version[/^3/])
if(defined?(::Rails) and ::Rails.version >= "3")
class Railtie < ::Rails::Railtie
silence_warnings do
begin