Return to Snippet

Revision: 2417
at February 12, 2007 14:13 by vanne


Initial Code
#add this inside .irbrc
#shortcut for y model.column_names
def show(obj)
  y(obj.send("column_names"))
end

Initial URL

                                

Initial Description
Add this inside your .irbrc file to call "show Model" in your console instead of "y Model.column_names"

Initial Title
shortcut method for display table schema

Initial Tags
rails, ruby

Initial Language
Ruby