Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if defined?(Rails) && Rails.env
- if defined?(Rails::ConsoleMethods)
- include Rails::ConsoleMethods
- else
- def reload!(print=true)
- puts "Reloading..." if print
- ActionDispatch::Reloader.cleanup!
- ActionDispatch::Reloader.prepare!
- true
- end
- end
- end
- Pry.config.editor = proc { |file, line| "kate -l#{line} #{file}" }
- if defined?(PryByebug)
- Pry.commands.alias_command 'c', 'continue'
- Pry.commands.alias_command 's', 'step'
- Pry.commands.alias_command 'n', 'next'
- Pry.commands.alias_command 'f', 'finish'
- end
- require "awesome_print"
- AwesomePrint.pry!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement