Skip to content

Commit

Permalink
extra a in the sentence
Browse files Browse the repository at this point in the history
  • Loading branch information
jtmkrueger authored and ugisozols committed Apr 30, 2012
1 parent 0f16e53 commit 8c69f2c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ The code within the +class_eval+ block in any decorator can be written as if you
end
</ruby>

We define the +find_all_blog_posts+ method and set it as a +before_filter+ for the +pages#home+ action. This will make the +@blog_posts+ instance variable available in our views which will contain all of the live blog posts. Because a writing a decorator is just like extending a class definition, we could even simplify this further by writing:
We define the +find_all_blog_posts+ method and set it as a +before_filter+ for the +pages#home+ action. This will make the +@blog_posts+ instance variable available in our views which will contain all of the live blog posts. Because writing a decorator is just like extending a class definition, we could even simplify this further by writing:

<ruby>
Refinery::PagesController.class_eval do
Expand Down

0 comments on commit 8c69f2c

Please sign in to comment.