Module: Card::Set::Right::Following::HtmlFormat

Extended by:
AbstractFormat
Defined in:
tmpsets/set/mod017-follow/right/following.rb

Instance Method Summary collapse

Instance Method Details

#current_follow_rule_cardObject



54
55
56
# File 'tmpsets/set/mod017-follow/right/following.rb', line 54

def current_follow_rule_card
  card.left.rule_card :follow, user: Auth.current
end

#edit_rule_successObject



50
51
52
# File 'tmpsets/set/mod017-follow/right/following.rb', line 50

def edit_rule_success
  { view: "status", id: card.name.url_key }
end

#preference_nameObject



45
46
47
48
# File 'tmpsets/set/mod017-follow/right/following.rb', line 45

def preference_name
  set_name = card.left.follow_set_card.name
  Card::Name[set_name, Auth.current.name, :follow]
end