Skip to content

Commit

Permalink
defer regenerate_invoice_pdf and body on Invoice so selects do not fail
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Zeligson committed Mar 13, 2014
1 parent 92f4e6f commit 18040d5
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions lib/zuora/objects/invoice.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,9 @@ class Invoice < Base
:updated_by_id,
:updated_date
)
defaults(
#:includes_one_time => true,
#:includes_recurring => true,
#:includes_usage => true,
#:invoice_date => Proc.new { Date.today }
defer(
:regenerate_invoice_pdf,
:body
)
end

Expand Down

0 comments on commit 18040d5

Please sign in to comment.