aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides/source
diff options
context:
space:
mode:
authorJeff Dutil <jdutil21@gmail.com>2011-08-16 22:59:36 -0400
committerJeff Dutil <jdutil21@gmail.com>2011-08-16 22:59:36 -0400
commitf302370c0527cd5f24889e7068134e59b65b40f1 (patch)
tree0bebed9134b31a7e140d5ce0b553e307569d74f7 /railties/guides/source
parent7ff894dcc75b46274e20a20c26b679e204e6c82b (diff)
downloadrails-f302370c0527cd5f24889e7068134e59b65b40f1.tar.gz
rails-f302370c0527cd5f24889e7068134e59b65b40f1.tar.bz2
rails-f302370c0527cd5f24889e7068134e59b65b40f1.zip
Fix ruby typo to correctly render code block in initializer.textile
Diffstat (limited to 'railties/guides/source')
-rw-r--r--railties/guides/source/initialization.textile3
-rw-r--r--railties/guides/source/migrations.textile1
2 files changed, 2 insertions, 2 deletions
diff --git a/railties/guides/source/initialization.textile b/railties/guides/source/initialization.textile
index 49d7513448..b93c4f35ac 100644
--- a/railties/guides/source/initialization.textile
+++ b/railties/guides/source/initialization.textile
@@ -761,7 +761,6 @@ def subclasses
end
</ruby>
-
The +config+ method used at the top of +I18n::Railtie+ is defined on +Rails::Railtie+ and is defined like this:
<ruby>
@@ -848,7 +847,7 @@ The +Collection+ class in +railties/lib/rails/initializable.rb+ inherits from +A
The +initializers_chain+ method referenced in the +initializers_for+ method is defined like this:
-<rub>
+<ruby>
def initializers_chain
initializers = Collection.new
ancestors.reverse_each do | klass |
diff --git a/railties/guides/source/migrations.textile b/railties/guides/source/migrations.textile
index 9da12e2e18..6fcc3cf4a2 100644
--- a/railties/guides/source/migrations.textile
+++ b/railties/guides/source/migrations.textile
@@ -300,6 +300,7 @@ change_table :products do |t|
t.rename :upccode, :upc_code
end
</ruby>
+
removes the +description+ and +name+ columns, creates a +part_number+ column and adds an index on it. Finally it renames the +upccode+ column. This is the same as doing
<ruby>