Update
I have modified before_save code and printing content (pp self) and:
13:54:28 api.1 | #<CloudPbx::SipAccount @values={"pbx_id"=>1,
"user_id"=>1, "name"=>"abc", "defaultuser"=>"aaaa", :created_at=>2014-09-25
13:54:28 +0200, :updated_at=>2014-09-25 13:54:28 +0200}>
13:54:28 api.1 | #<CloudPbx::SipAccount @values={"pbx_id"=>1,
"user_id"=>1, "name"=>"abc", "defaultuser"=>"aaaa", :created_at=>2014-09-25
13:54:28 +0200, :updated_at=>2014-09-25 13:54:28 +0200,
:defaultuser=>"3YUVNjLQ53cA6qVf", :username=>"3YUVNjLQ53cA6qVf",
:name=>"3YUVNjLQ53cA6qVf", :secret=>"9hmCJtG70p1n7Nah"}>
13:54:28 api.1 | D, [2014-09-25T13:54:28.465583 #32638] DEBUG -- :
(0.000343s) INSERT INTO `cloud_pbx_sip_accounts` (`pbx_id`, `user_id`,
`name`, `defaultuser`, `created_at`, `updated_at`, `defaultuser`,
`username`, `name`, `secret`) VALUES (1, 1, 'abc', 'aaaa', '2014-09-25
13:54:28.464096', '2014-09-25 13:54:28.464096', '3YUVNjLQ53cA6qVf',
'3YUVNjLQ53cA6qVf', '3YUVNjLQ53cA6qVf', '9hmCJtG70p1n7Nah')
--
You received this message because you are subscribed to the Google Groups
"sequel-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sequel-talk.
For more options, visit https://groups.google.com/d/optout.