We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af15745 commit 7528c4bCopy full SHA for 7528c4b
app/models/request.rb
@@ -30,7 +30,7 @@ class Request < ApplicationRecord
30
accepts_nested_attributes_for :item_requests, allow_destroy: true, reject_if: proc { |attributes| attributes["quantity"].blank? }
31
has_many :child_item_requests, through: :item_requests
32
33
- enum :status, { pending: 0, started: 1, fulfilled: 2, discarded: 3 }, _prefix: true
+ enum :status, { pending: 0, started: 1, fulfilled: 2, discarded: 3 }, prefix: true
34
35
validates :distribution_id, uniqueness: true, allow_nil: true
36
validate :item_requests_uniqueness_by_item_id
0 commit comments