• Jan Provaznik's avatar
    Don't convert issuable_initial_data into JSON · 630dfbff
    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
    630dfbff
show.html.haml 5.02 KB