Skip to content

Instantly share code, notes, and snippets.

@olimart
Last active April 9, 2020 04:22

Revisions

  1. olimart revised this gist Apr 9, 2020. 1 changed file with 7 additions and 5 deletions.
    12 changes: 7 additions & 5 deletions .irbrc
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,8 @@
    IRB.conf[:PROMPT_MODE] = :SIMPLE
    require 'irb/completion'
    if ENV['RAILS_ENV']
    IRB.conf[:PROMPT_MODE] = :SIMPLE
    require 'irb/completion'

    require 'hirb'
    # Hirb.enable
    Hirb.enable output: {"ActiveRecord::Base" => {class: :auto_table, ancestor: true, options: {vertical: true}}}
    require 'hirb'
    # Hirb.enable
    Hirb.enable output: {"ActiveRecord::Base" => {class: :auto_table, ancestor: true, options: {vertical: true}}}
    end
  2. olimart revised this gist Jan 16, 2015. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion .irbrc
    Original file line number Diff line number Diff line change
    @@ -2,4 +2,5 @@ IRB.conf[:PROMPT_MODE] = :SIMPLE
    require 'irb/completion'

    require 'hirb'
    Hirb.enable
    # Hirb.enable
    Hirb.enable output: {"ActiveRecord::Base" => {class: :auto_table, ancestor: true, options: {vertical: true}}}
  3. olimart created this gist Aug 17, 2013.
    5 changes: 5 additions & 0 deletions .irbrc
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    IRB.conf[:PROMPT_MODE] = :SIMPLE
    require 'irb/completion'

    require 'hirb'
    Hirb.enable