Skip to content

Commit

Permalink
better variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
nakajima committed Sep 23, 2008
1 parent 449f0c5 commit 94e78e7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 57 deletions.
8 changes: 4 additions & 4 deletions app/models/feed.rb
Expand Up @@ -14,11 +14,11 @@ def refresh_all!
find(:all).each(&:refresh!)
end

def entries_become(post_type, &block)
self.entry_type = post_type
has_many post_type, :foreign_key => :feed_id, :dependent => :destroy
def entries_become(entry_type, &block)
self.entry_type = entry_type
has_many entry_type, :foreign_key => :feed_id, :dependent => :destroy
define_method(:refresh!) do
logger.debug "=> creating #{post_type} from #{uri}"
logger.debug "=> creating #{entry_type} from #{uri}"
entries.each(&block.bind(self))
self.updated_at = Time.now
self.save
Expand Down
53 changes: 0 additions & 53 deletions lib/feedable.rb

This file was deleted.

0 comments on commit 94e78e7

Please sign in to comment.