Sha256: 0f4638bb37aaea46aafd1da92332cd305f239bd1bd83868508906d559d80ec9e

Contents?: true

Size: 247 Bytes

Versions: 1

Compression:

Stored size: 247 Bytes

Contents

require 'json'

class ConsultaAutosave < ApplicationRecord
  belongs_to :profissional
  belongs_to :paciente

  def self.buscar(paciente)
    return where(:paciente_id => paciente.id)
  end

  def hash
    return JSON.parse(self.dados)
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
omniauth-sabia-1.0.1 app/models/consulta_autosave.rb