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
def disciplines_by_school_id(school_id) | |
curricular_panel_stages = stages.collect(&:curricular_panel_stages).flatten.compact | |
unless curricular_panel_stages.empty? | |
curricular_panel_disciplines = curricular_panel_stages.collect(&:curricular_panel_disciplines)flatten.compact | |
unless curricular_panel_disciplines.empty? | |
@disciplines = curricular_panel_disciplines.collect(&:discipline).uniq | |
end | |
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
def disciplines_by_school_id(school_id) | |
curricular_panel_stages = stages.collect(&:curricular_panel_stages).flatten.compact | |
unless curricular_panel_stages.empty? | |
curricular_panel_disciplines = curricular_panel_stages.collect(&:curricular_panel_disciplines)flatten.compact | |
unless curricular_panel_disciplines.empty? | |
curricular_panel_disciplines.collect(&:discipline).uniq | |
end | |
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
{ | |
"auto_complete": true, | |
"auto_complete_commit_on_tab": true, | |
"auto_indent": true, | |
"bold_folder_labels": true, | |
"color_scheme": "Packages/Color Scheme - Default/Mac Classic.tmTheme", | |
"default_encoding": "UTF-8", | |
"default_line_ending": "system", | |
"detect_indentation": true, | |
"draw_white_space": "all", |
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
(function(){ | |
$('#demand_receiver_department').on('change', function(){ | |
var employee = $("#demand_receiver_user"); | |
$.getJSON('/employees.json?by_department='+$(this).val(), function(data){ | |
employee.empty(); | |
employee.append('<option value="">Selecione</option>'); | |
$.each(data, function(i,item){ | |
employee.append('<option value="' + item.id + '">' + item.name + '</option>'); | |
}); | |
}); |
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
if @report.valid? | |
respond_to do |format| | |
format.html do | |
render :layout => 'report' | |
end | |
format.pdf do | |
render :pdf => "bulletin_report", :layout => 'report' | |
end | |
end | |
else |
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
Cadastro de carros: | |
nome, ano, modelo | |
Cadastro de Marcas | |
nome | |
Cadastro de modelo | |
nome, marca | |
Página inicial: |
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 AcademicRecordReport < Report | |
cattr_acessor :current_user_id | |
protected | |
def current_user | |
User.find(current_user_id) | |
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
class Type01 < Importer | |
def import! | |
ReportTemplate.create(report_type: 'academic_record', template: report) | |
end | |
protected | |
def report | |
" {% for person in people %} | |
<div id='landscape-container'> |
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
let(:pledge) { | |
Pledge.make!(:empenho, | |
:amount => 100.00, | |
:descriptor => current_descriptor | |
) | |
} |
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
PG::Error: ERROR: cannot drop table compras_bank_accounts because other objects depend on it | |
DETAIL: constraint cbar_cba_fk on table compras_bank_account_capabilities depends on table compras_bank_accounts | |
constraint compras_account_movements_bank_account_id_fk on table compras_account_movements depends on table compras_bank_accounts | |
constraint compras_agreement_bank_accounts_bank_account_id_fk on table compras_agreement_bank_accounts depends on table compras_bank_accounts | |
constraint compras_bank_reconciliation_items_bank_account_id_fk on table compras_bank_reconciliation_items depends on table compras_bank_accounts | |
constraint compras_bank_reconciliations_bank_account_id_fk on table compras_bank_reconciliations depends on table compras_bank_accounts | |
constraint compras_bank_transfers_bank_account_id_fk on table compras_bank_transfers depends on table compras_bank_accounts | |
constraint compras_bank_transfers_deposit_bank_account_id_fk on table compras_bank_transfers depends on table compras_bank_accounts | |
constr |