Module: Card::Set::All::Follow::FollowLinkViews::Format

Extended by:
Card::Set::AbstractFormat
Defined in:
card/tmpsets/set/mod025-card-mod-follow/all/follow/follow_link_views.rb,
card/tmpsets/set/mod026-card-mod-follow/all/follow/follow_link_views.rb

Instance Method Summary collapse

Instance Method Details



9
10
11
# File 'card/tmpsets/set/mod025-card-mod-follow/all/follow/follow_link_views.rb', line 9

def follow_link_class
  card.followed? ? StopFollowLink : StartFollowLink
end

#show_follow?Boolean

Returns:

  • (Boolean)


13
14
15
# File 'card/tmpsets/set/mod025-card-mod-follow/all/follow/follow_link_views.rb', line 13

def show_follow?
  Auth.signed_in? && !card.new_card? && card.followable?
end