This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | class ResumosFinanceirosController < ApplicationController | |
| before_filter do | |
| @consulta_previa = ConsultaPrevia.find(params[:consulta_previa_id]) | |
| end | |
| def edit | |
| @investimentos = Investimentos.new(@consulta_previa.empreendimento) | |
| @fontes = Fontes.new(@consulta_previa.empreendimento) | |
| @resumo_financeiro = @consulta_previa.empreendimento.resumo_financeiro | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #definição | |
| module RepositorioRelatorios | |
| extend self | |
| def adicionar(relatorio) | |
| @relatorios ||= [] | |
| @relatorios.push relatorio | |
| end | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | # COMMENT OF SCRIPT HERE | |
| # you can make as many tabs as you wish... | |
| # tab names are actually arbitrary at this point too. | |
| before do | |
| run "cd ~/griffti/apps/multiconstrutora" | |
| end | |
| tab "rails server" do | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #pseudo codigo em topic_manager | |
| def add_post(forem_user,post_attributes) | |
| @post = @topic.posts.build(post_attributes) | |
| @post.user = forem_user | |
| @post.save | |
| end | |
| class PostsController < Forem::ApplicationController | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | worker_processes 3; | |
| events { | |
| worker_connections 1024; | |
| } | |
| http { | |
| passenger_root /usr/local/lib/ruby/gems/1.8/gems/passenger-3.0.7; | |
| passenger_ruby /usr/local/bin/ruby; | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | module DateTimeComposer | |
| module ActiveRecordExtensions | |
| module ClassMethods | |
| def compound_datetime(*attrs) | |
| define_compounds(attrs) | |
| end | |
| def define_compounds(attrs) | |
| attrs.each do |attr| | |
| class_eval <<-METHODS | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | class AddAvatarColumnsToUser < ActiveRecord::Migration | |
| def self.up | |
| change_table :users do |t| | |
| t.has_attached_file :avatar | |
| end | |
| end | |
| def self.down | |
| drop_attached_file :users, :avatar | |
| end | 
NewerOlder