The right of homestead or other exemption shall be governed by the law in force when the debt or demand was created, but the mode or remedy for asserting, ascertaining, contesting, and determining claims thereto shall be as prescribed in this chapter.