Module: Spree::Api::Responders::RablTemplate

Included in:
AppResponder
Defined in:
lib/spree/api/responders/rabl_template.rb

Instance Method Summary collapse

Instance Method Details

#templateObject



13
14
15
# File 'lib/spree/api/responders/rabl_template.rb', line 13

def template
  options[:default_template]
end

#to_formatObject



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 => options[:status] || 200
  else
    super
  end
end