Sha256: 89b9bd3553107ec31637f814ac569febde4da869c016c0accfe07b874dc6e3a7
Contents?: true
Size: 460 Bytes
Versions: 16
Compression:
Stored size: 460 Bytes
Contents
module RailsTwirp # RenderPb makes it possible to do 'render pb: <proto object>', skipping templates # The way this module is written is inspired by ActionController::Renderers module RenderPb def render_to_body(options) _render_to_body_with_pb(options) || super end def _render_to_body_with_pb(options) if options.include? :pb _process_options(options) return options[:pb] end nil end end end
Version data entries
16 entries across 16 versions & 1 rubygems