Permalink
Browse files

cleanup...

  • Loading branch information...
1 parent 809798a commit 5faa2f43dd0a6894bf87a545eab4bfceac42ee7e @christianhellsten committed Nov 6, 2012
Showing with 2 additions and 4 deletions.
  1. +2 −4 lib/feedr/active_record/feed.rb
@@ -9,9 +9,7 @@ class Feed < ::ActiveRecord::Base
has_many :entries, dependent: :delete_all
before_validation :sanitize_attributes
validates :url, presence: true, uniqueness: true
- scope :error, lambda {
- where("error_count > 0")
- }
+ scope :error, where("error_count > 0")
scope :invalid, lambda {
where(["error_count >= ?", Feedr.invalidate_after_n_errors])
}
@@ -110,7 +108,7 @@ def to_entry(feed_item)
entry.published_at = feed_item.published || Time.now.utc
entry.summary = feed_item.summary
entry.author = feed_item.author
- #entry.guid = feed_item.entry_id # we are paranoid and use f**kin* URLs
+ #entry.guid = feed_item.entry_id
entry.content = feed_item.content
end
end

0 comments on commit 5faa2f4

Please sign in to comment.