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

Commit

Permalink
Merge pull request #218 from BindaCMS/hotfixRelatedBoard
Browse files Browse the repository at this point in the history
FIX related_boards typo
  • Loading branch information
a-barbieri authored Nov 22, 2018
2 parents f205d15 + 75006e8 commit 369fd4a
Showing 1 changed file with 1 addition and 1 deletion.
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

0 comments on commit 369fd4a

Please sign in to comment.