diff options
author | Jeff Dutil <jdutil21@gmail.com> | 2011-08-16 22:59:36 -0400 |
---|---|---|
committer | Jeff Dutil <jdutil21@gmail.com> | 2011-08-16 22:59:36 -0400 |
commit | f302370c0527cd5f24889e7068134e59b65b40f1 (patch) | |
tree | 0bebed9134b31a7e140d5ce0b553e307569d74f7 /railties/guides | |
parent | 7ff894dcc75b46274e20a20c26b679e204e6c82b (diff) | |
download | rails-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')
-rw-r--r-- | railties/guides/source/initialization.textile | 3 | ||||
-rw-r--r-- | railties/guides/source/migrations.textile | 1 |
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> |