Sha256: 124cc920e4e6b57bdb1280dbf05f2ac6974c34c1d94a43b3495e56efd6ee7b58

Contents?: true

Size: 685 Bytes

Versions: 15

Compression:

Stored size: 685 Bytes

Contents

# -*- encoding : utf-8 -*-

include Card::Set::Type::Pointer

def raw_content
  if left
    items =
      if (left.type_id == SetID) || (left.type_id == CardtypeID)
        set_card = left.default_follow_set_card
        set_card.all_user_ids_with_rule_for(:follow).map do |user_id|
          if left.followed_by?(user_id) && (user = Card.find(user_id))
            user.name
          end
        end.compact
      else
        left.follower_names
      end
    items.map { |item| "[[#{item}]]" }.join "\n"
  else
    ""
  end
end

def virtual?
  !real?
end

format do
  include Card::Set::Type::Pointer::Format
end

format :html do
  include Card::Set::Type::Pointer::HtmlFormat
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
card-1.92 mod/notifications/set/right/followers.rb
card-1.91 mod/notifications/set/right/followers.rb
card-1.21.0 mod/notifications/set/right/followers.rb
card-1.20.4 mod/notifications/set/right/followers.rb
card-1.20.3 mod/notifications/set/right/followers.rb
card-1.20.2 mod/email/set/right/followers.rb
card-1.20.1 mod/email/set/right/followers.rb
card-1.20.0 mod/email/set/right/followers.rb
card-1.19.6 mod/email/set/right/followers.rb
card-1.19.5 mod/email/set/right/followers.rb
card-1.19.4 mod/email/set/right/followers.rb
card-1.19.3 mod/email/set/right/followers.rb
card-1.19.2 mod/email/set/right/followers.rb
card-1.19.1 mod/email/set/right/followers.rb
card-1.19.0 mod/email/set/right/followers.rb