Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

cleanup...

  • Loading branch information...
commit 5faa2f43dd0a6894bf87a545eab4bfceac42ee7e 1 parent 809798a
Christian Hellsten authored November 06, 2012

Showing 1 changed file with 2 additions and 4 deletions. Show diff stats Hide diff stats

  1. 6  lib/feedr/active_record/feed.rb
6  lib/feedr/active_record/feed.rb
@@ -9,9 +9,7 @@ class Feed < ::ActiveRecord::Base
9 9
       has_many :entries, dependent: :delete_all
10 10
       before_validation :sanitize_attributes
11 11
       validates :url, presence: true, uniqueness: true
12  
-      scope :error, lambda {
13  
-        where("error_count > 0")
14  
-      }
  12
+      scope :error, where("error_count > 0")
15 13
       scope :invalid, lambda {
16 14
         where(["error_count >= ?", Feedr.invalidate_after_n_errors])
17 15
       }
@@ -110,7 +108,7 @@ def to_entry(feed_item)
110 108
           entry.published_at = feed_item.published || Time.now.utc
111 109
           entry.summary = feed_item.summary
112 110
           entry.author = feed_item.author
113  
-          #entry.guid = feed_item.entry_id # we are paranoid and use f**kin* URLs
  111
+          #entry.guid = feed_item.entry_id
114 112
           entry.content = feed_item.content
115 113
         end
116 114
       end

0 notes on commit 5faa2f4

Please sign in to comment.
Something went wrong with that request. Please try again.