On Mon, Feb 16, 2009 at 8:47 PM, Pat Allan <[email protected]> wrote:
>
> Okay, next step requires some editing....
>
> vendor/plugins/thinking_sphinx/vendor/after_commit/lib/after_commit/
> connection_adapters.rb
> In trigger_after_commit_callbacks, comment out the begin/rescue/end,
> so if errors are happening in there we'll see them.
>
> Then:
> Expense
> .create
>  :amount
> =
>  >
> 1
> , :creator_id
> =>1, :business_id=>1, :due_date=>Date.today, :title=>'hello world'
>
> --



>> e = Expense.new :amount=>1, :creator_id=>1, :business_id=>1, 
>> :due_date=>Date.today, :title=>'hello world'
=> #<Expense id: nil, amount: #<BigDecimal:32297aa7,'1.0',1(4)>,
bank_account_id: nil, title: "hello world", check_number: nil,
created_at: nil, creator_id: 1, updated_at: nil, updater_id: nil,
notes: nil, business_id: 1, date: nil, expense_category_id: nil,
contractor_id: nil, employee_id: nil, paid_date: nil, is_paid: nil,
transfer_fund_id: nil, payee_id: nil, due_date: "2009-02-16",
client_id: nil, repeater_id: nil, repeated_template: false,
bank_statement_id: nil, delta: false, regex_title: nil, template_name:
nil>
>> e.save
=> true


it looks like everything saved without exception. I commented out the
rescues from trigger_after_commit_callbacks and
trigger_after_commit_on_create_callbacks.

Next?

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Thinking Sphinx" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/thinking-sphinx?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to