mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-02-07 08:01:02 -05:00
Typo fix, requestd_crops to requested_crops
This commit is contained in:
@@ -17,7 +17,7 @@ class Crop < ApplicationRecord
|
||||
has_many :photos, through: :plantings
|
||||
has_many :plant_parts, -> { distinct.order("plant_parts.name") }, through: :harvests
|
||||
belongs_to :creator, class_name: 'Member', optional: true, inverse_of: :created_crops
|
||||
belongs_to :requester, class_name: 'Member', optional: true, inverse_of: :requestd_crops
|
||||
belongs_to :requester, class_name: 'Member', optional: true, inverse_of: :requested_crops
|
||||
belongs_to :parent, class_name: 'Crop', optional: true, inverse_of: :varieties
|
||||
has_many :varieties, class_name: 'Crop', foreign_key: 'parent_id', dependent: :nullify, inverse_of: :parent
|
||||
has_and_belongs_to_many :posts # rubocop:disable Rails/HasAndBelongsToMany
|
||||
|
||||
Reference in New Issue
Block a user