lib/adknowledge/integrated.rb in adknowledge-0.0.4 vs lib/adknowledge/integrated.rb in adknowledge-0.0.6
- old
+ new
@@ -74,18 +74,18 @@
# Return all successfully mapped recipients
#
# @return [Array] mapped recipients
def mapped_recipients
return [] unless mapped?
- recipients.select{|r| r['success']}
+ recipients.select{ |r| r['success'] == true }
end
# Return all errored recipients
#
# @return [Array] errored recipients
def errored_recipients
return [] unless mapped?
- recipients.select{|r| ! r['success']}
+ recipients.select{ |r| r['success'] == false }
end
# Set both click-domain and image-domain
#
# @param [Symbol] domain