Sha256: 71d01ccc12ab45749a1048ed731f452bd8db7b7f2ea7257c98bee8af41ccbb37
Contents?: true
Size: 844 Bytes
Versions: 2
Compression:
Stored size: 844 Bytes
Contents
# encoding: UTF-8 module PryRails class Railtie < Rails::Railtie console do require 'pry' require 'pry-rails/commands' if Rails::VERSION::MAJOR == 3 Rails::Console::IRB = Pry unless defined? Pry::ExtendCommandBundle Pry::ExtendCommandBundle = Module.new end end if Rails::VERSION::MAJOR == 4 || Rails::VERSION::MAJOR == 5 || Rails::VERSION::MAJOR == 6 Rails.application.config.console = Pry end if (Rails::VERSION::MAJOR == 3 && Rails::VERSION::MINOR >= 2) || Rails::VERSION::MAJOR == 4 || Rails::VERSION::MAJOR == 5 || Rails::VERSION::MAJOR == 6 require "rails/console/app" require "rails/console/helpers" TOPLEVEL_BINDING.eval('self').extend ::Rails::ConsoleMethods end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pry-rails-0.3.8 | lib/pry-rails/railtie.rb |
pry-rails-0.3.7 | lib/pry-rails/railtie.rb |