Skip to content

Commit

Permalink
Fix a bug in Subscriber concern - #80
Browse files Browse the repository at this point in the history
  • Loading branch information
simukappu committed Aug 25, 2018
1 parent dbf1ffd commit b100375
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/activity_notification/models/concerns/subscriber.rb
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ def _subscribes_to_optional_target?(key, optional_target_name, subscribe_as_defa
# @param [Array] args Arguments of evaluating subscription method
# @return [Boolean] If the target subscribes
def evaluate_subscription(record, field, default, *args)
default ? record.blank? || record.send(field, *args) : record.present? && record.send(field)
default ? record.blank? || record.send(field, *args) : record.present? && record.send(field, *args)
end

end
Expand Down

0 comments on commit b100375

Please sign in to comment.