On Mon, Feb 16, 2009 at 6:12 PM, Pat Allan <[email protected]> wrote:
>
> Okay, error's gone, which is good, but nothing's happening for the
> delta, so here's some more code to check in script/console:
>
> ThinkingSphinx.updates_enabled?
> ThinkingSphinx.deltas_enabled?
> ThinkingSphinx.suppress_delta_output?
> e = Expense.new :amount=>1, :creator_id=>1, :business_id=>1, :due_date
> => Date.today
> e.changed?
> e.new_record?
> e.save
> e.changed?
> e.new_record?
>

>> ThinkingSphinx.updates_enabled?
=> true
>> ThinkingSphinx.deltas_enabled?
=> true
>> ThinkingSphinx.suppress_delta_output?
=> false
>> e = Expense.new :amount=>1, :creator_id=>1, :business_id=>1, 
>> :due_date=>Date.today
=> #<Expense id: nil, amount: #<BigDecimal:31814f2f,'1.0',1(4)>,
bank_account_id: nil, title: nil, 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.changed?
=> true
>> e.new_record?
=> true
>> e.save
=> true
>> e.changed?
=> false
>> e.new_record?
=> false

--~--~---------~--~----~------------~-------~--~----~
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