Skip to content

Instantly share code, notes, and snippets.

Pry Cheat Sheet

Command Line

  • pry -r ./config/app_init_file.rb - load your app into a pry session (look at the file loaded by config.ru)
  • pry -r ./config/environment.rb - load your rails into a pry session

Debugger

@JoeNoPhoto
JoeNoPhoto / rails_postgres_enum.rb
Created September 12, 2018 06:30 — forked from theaxel/rails_postgres_enum.rb
Support for PostgreSQL enum types in Rails 5.2 (including schema dump)
# Support for PostgreSQL enum types in Rails 5.2 (including schema dump)
module ActiveRecord
class SchemaDumper
def dump(stream)
header(stream)
extensions(stream)
enums(stream)
tables(stream)
trailer(stream)
stream
@JoeNoPhoto
JoeNoPhoto / .bash_profile
Created August 1, 2017 20:00 — forked from natelandau/.bash_profile
Mac OSX Bash Profile
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management