Skip to content

outgoing_body_filter not used #46

@kookster

Description

@kookster

the outgoing_body_filter method is described and has a base implementation in hyper_resource.rb

  ## +outgoing_body_filter+ filters a hash of attribute keys and values
  ## on their way from a HyperResource to a request body.  Override this
  ## in a subclass of HyperResource to implement filters on outgoing data.
  def outgoing_body_filter(attr_hash)
    attr_hash
  end

https://github.com/gamache/hyperresource/blob/master/lib/hyper_resource.rb#L152-L157

But, it isn't called anywhere, so implementing it in a subclass does nothing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions