Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: oauth_provider
Fetching contributors…

Cannot retrieve contributors at this time

16 lines (11 sloc) 0.378 kB
require_relative 'converts_subscriber_to_feed_data'
class FindsOrCreatesFeeds
def self.find_or_create(subscribe_to)
feed = Feed.first(:id => subscribe_to)
unless feed
feed_data = ConvertsSubscriberToFeedData.get_feed_data(subscribe_to)
feed = Feed.first(:remote_url => feed_data.url) || Feed.create_from_feed_data(feed_data)
end
feed
end
end
Jump to Line
Something went wrong with that request. Please try again.