Sha256: 7f4d5a753a31e0ddd98cd95d488d33d5f376f2bf11a82890e7e76868d28dc1cd
Contents?: true
Size: 544 Bytes
Versions: 5
Compression:
Stored size: 544 Bytes
Contents
class Aggregation < ActiveRecord::Base # ########################################################## # # adds a feed to an aggregation and saves the feed # def add_feed_to_aggregation(aggregation, feed) # if aggregation.feeds.include?(feed) # self.already_feeds.push(feed) # else # if feed.save # have to save here so that feed has an id. Without id can't associate with aggregation # feed.aggregations << aggregation # self.added_feeds.push(feed ) # end # end # feed.save # end end
Version data entries
5 entries across 5 versions & 1 rubygems