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

Extended by:
Card::Set::AbstractFormat
Defined in:
tmpsets/set/mod017-follow/all/follow/follow_link_views.rb

Instance Method Summary collapse

Instance Method Details



9
10
11
# File 'tmpsets/set/mod017-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 'tmpsets/set/mod017-follow/all/follow/follow_link_views.rb', line 13

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