Use scope with argument
scope :waiting_for_approval, -> (user_id) { where(status: false, user_id: user_id) }
CLICK HERE to find out more related problems solutions.
Use scope with argument
scope :waiting_for_approval, -> (user_id) { where(status: false, user_id: user_id) }
CLICK HERE to find out more related problems solutions.