Skip to content

Use Grape > 0.2.3 formatter #5

Closed
@dblock

Description

@dblock

With the next release of Grape, 0.23 (probably going to be 0.3) you no longer should need to monkey-patch the formatter. You should be able to do this:

module RablFormatter
   def self.call(object)
      ...
    end
end

And in the API:

formatter :json, RablFormatter

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions