Class: ODDB::View::Ajax::Json

Inherits:
HtmlGrid::Component show all
Defined in:
src/view/ajax/json.rb

Constant Summary

HTTP_HEADERS =
{
  'Content-Type'  =>  'text/javascript; charset=UTF-8',
}

Instance Method Summary (collapse)

Methods inherited from HtmlGrid::Component

#additional_javascripts, #dynamic_html

Instance Method Details

- (Object) to_html(context)



14
15
16
# File 'src/view/ajax/json.rb', line 14

def to_html(context)
  @model.to_json
end