Created
February 4, 2009 15:26
-
-
Save brandon-beacher/58143 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class AmazonSimplePayTransaction < ActiveRecord::Base | |
after_create :pay_amazon_simple_payable | |
belongs_to :amazon_simple_payable, :polymorphic => true | |
private | |
def pay_amazon_simple_payable | |
amazon_simple_payable.update_attributes! :paid => true if %w{PI PS}.include?(status) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment