From ad1c6ccaaeda8ab8df8316b9261dd1e100df75fd Mon Sep 17 00:00:00 2001 From: Nemael <100dragons@gmail.com> Date: Thu, 8 Oct 2020 17:23:17 +0200 Subject: Changed 'has_ony' to 'has_one' --- app/models/section.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/section.rb b/app/models/section.rb index a9d163e..670c543 100644 --- a/app/models/section.rb +++ b/app/models/section.rb @@ -1,6 +1,6 @@ class Section < ApplicationRecord belongs_to :category - has_ony :taxonomy, through: :category + has_one :taxonomy, through: :category acts_as_list column: :rank, scope: :category -- cgit v1.2.3