diff options
author | Rick Olson <technoweenie@gmail.com> | 2006-06-21 02:17:48 +0000 |
---|---|---|
committer | Rick Olson <technoweenie@gmail.com> | 2006-06-21 02:17:48 +0000 |
commit | 53924078d09f8999fe1a2d0e52abf5fdeddc0f30 (patch) | |
tree | 5eb0da49a8bc2b0027615de33df650020aa4e192 /activerecord | |
parent | 6ba9a1eac1057c8accf242558e8896a7a6f21b32 (diff) | |
download | rails-53924078d09f8999fe1a2d0e52abf5fdeddc0f30.tar.gz rails-53924078d09f8999fe1a2d0e52abf5fdeddc0f30.tar.bz2 rails-53924078d09f8999fe1a2d0e52abf5fdeddc0f30.zip |
Don't use keywords as local vars in documentation. Closes #5291. [jeremy@planetargon.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4477 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb b/activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb index 44fab82425..fde561d03a 100644 --- a/activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb @@ -228,14 +228,14 @@ module ActiveRecord # 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) |