Skip to content

Instantly share code, notes, and snippets.

Leonardo Bighi bighi

Block or report user

Report or block bighi

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:2431514
def merge(people)
people.each do |id|
person = Person.find(id)
return false unless person.account.id == self.account.id
self.transaction do
person.financial_transactions.each do |ft|
ft.person = self
errors[:base] << "Erro ao salvar financial transaction" unless ft.save!
end
You can’t perform that action at this time.