jeudi 20 avril 2017

How to use procedure in rails

I'm trying to use execute_procedure in rails but when I call my proc what it returns it is a hash, I wanted it to have the bench reference to be able to use activerecord to falicitar, how do I do it?

Routine.in (Date.today)

Self.in (date)

  Self.execute_procedure ("test '# {date}'") End

**Irb (main): 079: 0> a.first => {"Rustic Wooden Lamp44", "schedule_time" => 2017-04-20 18:00:47 UTC, "start_time" => 6404, "routine_id" => 4858, Nil, "end_time" => nil, "result" => nil, "user_id" => nil, "justification" => nil, "incident_links" => nil, "status" => 0, "finiSh_routine_user_id "=> nil} <

Aucun commentaire:

Enregistrer un commentaire