decko-commons/decko

View on GitHub
mod/follow/set/self/edited.rb

Summary

Maintainability
A
0 mins
Test Coverage
include_set Abstract::FollowOption

restrictive_follow_opts position: 2

follower_candidate_ids do |card|
  # FIXME? - could optimize by not using cards table...
  card.id ? Card.search(editor_of: card.id, return: :id) : []
end

def title
  "Following content you edited"
end

def label
  "follow if I edited"
end

def description set_card
  "#{set_card.follow_label} I edited"
end