lib/pry-helper.rb in pry-helper-0.1.2 vs lib/pry-helper.rb in pry-helper-0.1.3
- old
+ new
@@ -1,5 +1,5 @@
-if defined? Rails && Rails.const_defined? 'Console'
+if defined?(Rails) && Rails.const_defined?('Console')
Pry.hooks.add_hook(:when_started, :pry_helper) do |output, binding, pry|
require 'terminal-table'
require 'table_print'
require 'roo'
require 'caxlsx'