aboutsummaryrefslogtreecommitdiff
path: root/app/models/section.rb
diff options
context:
space:
mode:
authorNemael <100dragons@gmail.com>2020-10-08 17:23:17 +0200
committerNemael <100dragons@gmail.com>2020-10-08 17:23:17 +0200
commitad1c6ccaaeda8ab8df8316b9261dd1e100df75fd (patch)
tree77084b0e6a5dee9cc85b2775adb4ed90f18f3220 /app/models/section.rb
parent00ac912be46d858379fb5685b7290fe8d60001ef (diff)
downloadincommon-map-ad1c6ccaaeda8ab8df8316b9261dd1e100df75fd.tar.gz
Changed 'has_ony' to 'has_one'
Diffstat (limited to 'app/models/section.rb')
-rw-r--r--app/models/section.rb2
1 files changed, 1 insertions, 1 deletions
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