Skip to content

Commit

Permalink
Docs changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
futurechimp committed Jul 14, 2011
1 parent 3107dfe commit 9a5a9b5
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions app/models/feed_item.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ class FeedItem
include Mongoid::Document
include Mongoid::Timestamps # adds created_at and updated_at fields

# the ImageFinder module finds the largest image for us
# The ImageFinder module finds the largest image for us
#
include ImageFinder

Expand Down Expand Up @@ -36,10 +36,11 @@ class FeedItem
scope :not_downloaded_yet, where(:state => "not_downloaded_yet")
scope :downloaded, where(:state => "downloaded")

# State machine. Keeps track of whether this feed item has downloaded its image or not.
# State machine. Keeps track of whether this feed item has downloaded its
# image or not.
#
# We don't care if downloading the image succeeds or fails, we just want to mark this
# FeedItem as having been checked.
# We don't care if downloading the image succeeds or fails, we just want to
# mark this FeedItem as having been checked.
#
state_machine :initial => :not_downloaded_yet do
after_transition :on => :download_image, :do => :do_retrieve_image
Expand Down

0 comments on commit 9a5a9b5

Please sign in to comment.