Typo fix, requestd_crops to requested_crops

This commit is contained in:
Brenda Wallace
2018-10-16 12:42:49 +13:00
parent 0a65e57d53
commit c1dabfc3d3

View File

@@ -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