Skip to content

Commit

Permalink
shorten using collect
Browse files Browse the repository at this point in the history
  • Loading branch information
parndt committed Jan 11, 2010
1 parent 672cb0f commit dbab5b2
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions vendor/plugins/pages/app/models/page.rb
Expand Up @@ -105,13 +105,7 @@ def title_with_meta

# used for search only
def all_page_part_content
content = ""

self.parts.each do |part|
content << " #{part.body}"
end

content
self.parts.collect {|p| p.body}.join(" ")
end

def self.per_page(dialog = false)
Expand Down

0 comments on commit dbab5b2

Please sign in to comment.