Method: Glib::Json::Ui#__json_ui_commit

Defined in:
app/controllers/concerns/glib/json/ui.rb

#__json_ui_commit(options) ⇒ Object



69
70
71
72
73
74
75
76
77
78
79
80
# File 'app/controllers/concerns/glib/json/ui.rb', line 69

def __json_ui_commit(options)
  return if response.status >= 300

  case @__json_ui_rendering
  when :vue
    if (hash = json_transformation_start).is_a?(Hash)
      __json_ui_vue(hash, options)
    else
      raise "Invalid JSON UI payload: #{hash}"
    end
  end
end