Last active
August 14, 2018 11:43
-
-
Save neudabei/3549170d8b3d4ab131caed318d32a2a2 to your computer and use it in GitHub Desktop.
fl_medium_blogpost
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ... | |
{ fields: | |
subject_categories.map do |sc| | |
selected = interested_subject_categories.include?(sc) | |
{ title: sc.title, value: sc.id.to_s, selected: selected } | |
end | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment