MCQs > IT & Programming > Ruby On Rails > Which of these options is right to create default scope of model in Rails?

Ruby On Rails MCQs

Which of these options is right to create default scope of model in Rails?

Answer

Correct Answer: default_scope -> { order(:position) }

Explanation:

Note: This Question is unanswered, help us to find answer for this one

Ruby On Rails Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Ruby On Rails Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it