Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
def fill_box(asset, selected, selected_class)
items = asset.map { |item| item.id } if asset.is_a?(Array)
items ||= [asset.id]
output = items.map ...
output.html_safe
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment