Permalink
Browse files

Don't use keywords as local vars in documentation. Closes #5291. [jer…

…emy@planetargon.com]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4477 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent 6ba9a1e commit 53924078d09f8999fe1a2d0e52abf5fdeddc0f30 @technoweenie technoweenie committed Jun 21, 2006
@@ -228,14 +228,14 @@ def [](name)
# This method returns <tt>self</tt>.
#
# ===== Examples
- # # Assuming def is an instance of TableDefinition
- # def.column(:granted, :boolean)
+ # # Assuming td is an instance of TableDefinition
+ # td.column(:granted, :boolean)
# #=> granted BOOLEAN
#
- # def.column(:picture, :binary, :limit => 2.megabytes)
+ # td.column(:picture, :binary, :limit => 2.megabytes)
# #=> picture BLOB(2097152)
#
- # def.column(:sales_stage, :string, :limit => 20, :default => 'new', :null => false)
+ # td.column(:sales_stage, :string, :limit => 20, :default => 'new', :null => false)
# #=> sales_stage VARCHAR(20) DEFAULT 'new' NOT NULL
def column(name, type, options = {})
column = self[name] || ColumnDefinition.new(@base, name, type)

0 comments on commit 5392407

Please sign in to comment.