Sha256: 242d598698cd2028a9eefb1764e2df67eea6fa689300dd312f8e1bdf17d8d4b6

Contents?: true

Size: 340 Bytes

Versions: 27

Compression:

Stored size: 340 Bytes

Contents

module Spree
  module Api
    module Responders
      module RablTemplate
        def to_format
          if template
            render template, :status => options[:status] || 200
          else
            super
          end
        end

        def template
          options[:default_template]
        end
      end
    end
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
solidus_api-1.2.3 lib/spree/api/responders/rabl_template.rb
solidus_api-1.1.4 lib/spree/api/responders/rabl_template.rb
solidus_api-1.0.7 lib/spree/api/responders/rabl_template.rb
solidus_api-1.0.6 lib/spree/api/responders/rabl_template.rb
solidus_api-1.2.2 lib/spree/api/responders/rabl_template.rb
solidus_api-1.2.1 lib/spree/api/responders/rabl_template.rb
solidus_api-1.1.3 lib/spree/api/responders/rabl_template.rb
solidus_api-1.0.5 lib/spree/api/responders/rabl_template.rb
solidus_api-1.2.0 lib/spree/api/responders/rabl_template.rb
solidus_api-1.2.0.rc2 lib/spree/api/responders/rabl_template.rb
solidus_api-1.0.4 lib/spree/api/responders/rabl_template.rb
solidus_api-1.1.2 lib/spree/api/responders/rabl_template.rb
solidus_api-1.2.0.rc1 lib/spree/api/responders/rabl_template.rb
solidus_api-1.2.0.beta1 lib/spree/api/responders/rabl_template.rb
solidus_api-1.0.3 lib/spree/api/responders/rabl_template.rb
solidus_api-1.1.1 lib/spree/api/responders/rabl_template.rb
solidus_api-1.1.0 lib/spree/api/responders/rabl_template.rb
solidus_api-1.1.0.pre2 lib/spree/api/responders/rabl_template.rb
solidus_api-1.1.0.pre1 lib/spree/api/responders/rabl_template.rb
solidus_api-1.1.0.beta1 lib/spree/api/responders/rabl_template.rb