• Jan Provaznik's avatar
    Don't convert issuable_initial_data into JSON · 22addf26
    Jan Provaznik authored
    Instead of converting hash into JSON inside
    issuable_initial_data method, return hash and convert
    to JSON later. This allows us to easily extend basic
    issuable data with resource specific values. For example
    for Epic these data should include also labels, so we can then
    do something like:
    issuable_initial_data(@epic).merge(labels: @epic.labels).to_json
    22addf26
issuables_helper.rb 10.5 KB