/ Published in: Ruby

Add this inside your .irbrc file to call "show Model" in your console instead of "y Model.column_names"
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
#add this inside .irbrc #shortcut for y model.column_names def show(obj) y(obj.send("column_names")) end
Comments
