Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

During update:entity, touch the record whether updated or not

  • Loading branch information...
commit 2526cd11d77287c383375ffb801e513dfd821623 1 parent ae63d6a
@andey authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  lib/tasks/update.rake
View
1  lib/tasks/update.rake
@@ -6,6 +6,7 @@ namespace :update do
# select Entity
@entity = Entity.where(:comment_karma => 0, :wikipedia_hits => 0).first
@entity ||= Entity.order(:updated_at).first
+ @entity.touch
puts "UPDATE ENTITY: #{@entity.name}"
url = @entity.entities_links.where(:entities_links_icon_id => 1).first
Please sign in to comment.
Something went wrong with that request. Please try again.