Method: Pay::Charge.find_by_processor_and_id
- Defined in:
- app/models/pay/charge.rb
.find_by_processor_and_id(processor, processor_id) ⇒ Object
57 58 59 |
# File 'app/models/pay/charge.rb', line 57 def self.find_by_processor_and_id(processor, processor_id) joins(:customer).find_by(processor_id: processor_id, pay_customers: {processor: processor}) end |