Pass format options through ActionController::Responder to serializer

ActiveRecord::Base provides a JSON serializer which takes an optional options argument.

https://github.com/rails/rails/blob/e3ceb28e66ca6e869f8f9778dc42672f48001a90/activemodel/lib/active_model/serializers/json.rb#L88

def as_json(options = nil)

``

ActionController::Responder doesn’t allow for passing options to the serializer via respond_with. I’d love to add this ability if others would find it useful.

https://github.com/rails/rails/blob/3-2-stable/actionpack/lib/action_controller/metal/responder.rb#L152