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

Version Path
muck-raker-0.1.31 app/models/aggregation.rb
muck-raker-0.1.30 app/models/aggregation.rb
muck-raker-0.1.29 app/models/aggregation.rb
muck-raker-0.1.28 app/models/aggregation.rb
muck-raker-0.1.27 app/models/aggregation.rb