Skip to content

Commit

Permalink
Fix ruby typo to correctly render code block in initializer.textile
Browse files Browse the repository at this point in the history
  • Loading branch information
JDutil authored and fxn committed Aug 18, 2011
1 parent 6f3bac4 commit 4b411c8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions railties/guides/source/initialization.textile
Expand Up @@ -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>
Expand Down Expand Up @@ -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 |
Expand Down
1 change: 1 addition & 0 deletions railties/guides/source/migrations.textile
Expand Up @@ -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>
Expand Down

0 comments on commit 4b411c8

Please sign in to comment.