Project

General

Profile

« Previous | Next » 

Revision cc739ab4

Added by Joseph Magen over 10 years ago

fixes #3011 - default root node name for api collections json response to :results but make it configurable

View differences:

app/controllers/api/v2/fact_values_controller.rb
values = FactValue.my_facts.no_timestamp_facts.
search_for(*search_options).paginate(paginate_options).
includes(:fact_name, :host)
render :json => FactValue.build_facts_hash(values.all)
@fact_values = FactValue.build_facts_hash(values.all)
end
end

Also available in: Unified diff