Module: Spree::Api::Responders::RablTemplate
- Included in:
- AppResponder
- Defined in:
- lib/spree/api/responders/rabl_template.rb
Instance Method Summary collapse
Instance Method Details
#template ⇒ Object
13 14 15 |
# File 'lib/spree/api/responders/rabl_template.rb', line 13 def template [:default_template] end |
#to_format ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/spree/api/responders/rabl_template.rb', line 5 def to_format if template render template, status: [:status] || 200 else super end end |