fabrik42/acts_as_api — Issue #42: Using respond_with method ignores meta data
Author: vlucas
Created: 2011-10-27 16:49:01+00:00
State: open

When using the `respond_with` rendering method, any data added with the `:meta` key is ignored:

respond_with(@events, :api_template => :public, :root => :results, :meta => api_collection_meta(@events))

Where the default `respond_to` block works as expected:

respond_to do |format|
format.html # index.html.erb
format.json { render_for_api :public, json: @events, :root => :results, :meta => api_collection_meta(@events) }
end