Skip to content
This repository has been archived by the owner on Jul 19, 2021. It is now read-only.

FIX related_boards typo #218

Merged
merged 1 commit into from
Nov 22, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down