lib/actv/asset.rb in actv-1.3.6 vs lib/actv/asset.rb in actv-1.3.7

- old
+ new

@@ -244,11 +244,11 @@ def activenet? self.sourceSystem[:legacyGuid].upcase == "FB27C928-54DB-4ECD-B42F-482FC3C8681F" rescue false end def kids? - kids_interest? + kids_friendly_source_system? && kids_interest? end def registration_status @registration_status ||= nil end @@ -390,12 +390,17 @@ "" end end private + def kids_interest? interests = meta_interests.to_a.map(&:downcase) ['kids', 'family'].any? { |tag| interests.include? tag } + end + + def kids_friendly_source_system? + activenet? || awcamps30? || articles_source? end def articles_source? # this guid is equal to the Active.com Articles self.sourceSystem.fetch(:legacyGuid, "").upcase == "CA4EA0B1-7377-470D-B20D-BF6BEA23F040"