app/models/service.rb in muck-services-3.2.2 vs app/models/service.rb in muck-services-3.3.0
- old
+ new
@@ -426,10 +426,10 @@
# refresh_services: By default all tag services are cached. Setting this value to true
# will result in the values being repopulated from the database
def self.create_tag_feeds(terms, user = nil, selected_service_ids = nil, refresh_services = false)
services = get_tag_services(selected_service_ids, refresh_services)
split_terms(terms).collect { |tag|
- services.collect { |service| Feed.find_or_create(service.generate_tag_uri(tag), tag, '', '', service.id, user, service.human_uri(tag)) }
+ services.collect { |service| Feed.find_or_create(service.generate_tag_uri(tag), tag, '', '', service, user, service.human_uri(tag)) }
}.flatten!
end
# Splits terms using a comma. This method also URI encodes all resulting terms
# terms: A string, array or comma delimited string of terms (tags).