Skip to content

Commit

Permalink
add filter by account to admin API payment resource. refs #1491
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitry-sinina committed Jun 24, 2024
1 parent 019e16c commit b4646e6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/resources/api/rest/admin/payment_resource.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ class Api::Rest::Admin::PaymentResource < BaseResource

has_one :account

relationship_filter :account
ransack_filter :amount, type: :number
ransack_filter :notes, type: :string
ransack_filter :status, type: :enum, collection: Payment::CONST::STATUS_IDS.values
Expand Down

0 comments on commit b4646e6

Please sign in to comment.