Software Público Brasileiro
Portal do

Software Público Brasileiro

  • Cadastre-se
  • Entrar
  • Project
  • Files
  • Commits
  • Network
  • Graphs
  • Issues 3
  • Merge Requests 0
  • Wiki
  • gitlabhq
  • app
  • observers
  • base_observer.rb
  • c8a115c0   Link issues from comments and automatically close them ... Browse Code »
    Any mention of Issues, MergeRequests, or Commits via GitLab-flavored markdown
    references in descriptions, titles, or attached Notes creates a back-reference
    Note that links to the original referencer. Furthermore, pushing commits with
    commit messages that match a (configurable) regexp to a project's default
    branch will close any issues mentioned by GFM in the matched closing phrase.
    If accepting a merge request would close any Issues in this way, a banner is
    appended to the merge request's main panel to indicate this.
    ash wilson
    2013-08-25 18:58:41 -0400  
base_observer.rb 290 Bytes
Edit Raw Blame History
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
class BaseObserver < ActiveRecord::Observer
  def notification
    NotificationService.new
  end

  def log_info message
    Gitlab::AppLogger.info message
  end

  def current_user
    Thread.current[:current_user]
  end

  def current_commit
    Thread.current[:current_commit]
  end
end
Voltar para o topo
Assuntos
Publique seu software
Prestadores de serviço
Espaços dos municípios
Software Público
Entenda o que é
Eventos
Prêmios
Publicações
Serviços
FAQ
Contato
Relatar erros
RSS
O que é?
Assine
Navegação
Acessibilidade
Mapa do site

Desenvolvido com os projetos de software livre Colab, Gitlab, Mailman e Noosfero