From 75006e86fa49a0f2abb675274684f53cf671f4f5 Mon Sep 17 00:00:00 2001 From: marco panzeri Date: Thu, 22 Nov 2018 11:18:29 +0100 Subject: [PATCH] FIX related_boards typo --- .../fieldable_association_helpers/fieldable_relation_helpers.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/concerns/binda/fieldable_association_helpers/fieldable_relation_helpers.rb b/app/models/concerns/binda/fieldable_association_helpers/fieldable_relation_helpers.rb index c9e355ca..2dd849af 100644 --- a/app/models/concerns/binda/fieldable_association_helpers/fieldable_relation_helpers.rb +++ b/app/models/concerns/binda/fieldable_association_helpers/fieldable_relation_helpers.rb @@ -58,7 +58,7 @@ def has_related_boards(field_slug) # @param field_slug [string] The slug of the field setting # @return [array] An array of boards def get_related_boards(field_slug) - obj = self.relations.find{ |t| t.field_setting_idid == FieldSetting.get_id( field_slug ) } + obj = self.relations.find{ |t| t.field_setting_id == FieldSetting.get_id( field_slug ) } raise ArgumentError, "There isn't any related field associated to the current slug (#{field_slug}) on instance (#{self.class.name} ##{self.id}).", caller if obj.nil? return obj.dependent_relations.map{|relation| relation.dependent} end