Module: GossipHelper

Defined in:
app/helpers/gossip_helper.rb

Instance Method Summary collapse

Instance Method Details

#gossip_active?Boolean

Returns:

  • (Boolean)

2
3
4
# File 'app/helpers/gossip_helper.rb', line 2

def gossip_active?
  InchCI::Gossip::GOSSIP_ACTIVE
end

#gossip_roomObject


11
12
13
14
15
16
17
18
# File 'app/helpers/gossip_helper.rb', line 11

def gossip_room
  return unless gossip_active?
  if @project
    "projects:#{@project.uid}"
  else
    @gossip_room # "projects:lobby"
  end
end

#gossip_serverObject


6
7
8
9
# File 'app/helpers/gossip_helper.rb', line 6

def gossip_server
  return unless gossip_active?
  InchCI::Gossip::GOSSIP_HOST
end