Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class PaymentMethod < ActiveRecord::Base
- has_many :payments
- has_many :orders # where it's the selected payment method
- has_and_belongs_to_many :countries
- has_many :country_freight_methods
- belongs_to :item # fee (eg direct deposit)
- def to_s
- name
- end
- end
Add Comment
Please, Sign In to add comment