Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
class PaymentMethod < ActiveRecord::Base def authorize(amount) processor = Payment::TrustCommerce.new('billingid' => self.processor_id) if !processor.process('preauth', 'amount' => amount.to_s) raise PaymentMethodError, processor.error end self.payment_transactions.create(:processor => processor, :action => 'Authorization') end end
This paste will be private.
From the Design Piracy series on my blog: