Sha256: 9fa144099d888cf8dffe5d598c5889ab6cd38843f0d1f8f5ff7a3555fe5ea997
Contents?: true
Size: 569 Bytes
Versions: 100
Compression:
Stored size: 569 Bytes
Contents
module Spree module Api module Responders module RablTemplate def to_format if template render template, status: options[:status] || 200 else super end rescue ActionView::MissingTemplate => e api_behavior end def template options[:default_template] end def api_behavior if controller.params[:action] == 'destroy' # Render a blank template super end end end end end end
Version data entries
100 entries across 100 versions & 1 rubygems