Sha256: ebd8254cd26f6dbfa3bb31fe47f9eab4f62c026179ac91bf9c8e8336084bfd74
Contents?: true
Size: 921 Bytes
Versions: 6
Compression:
Stored size: 921 Bytes
Contents
module Spree module Api module V2 class BaseController < Spree::Api::BaseController include Spree::Api::V2::Renderable protected def index(collection = []) ActiveSupport::Deprecation.warn <<-TEXT.squish Using `super` is now deprecated. We're aiming to removing as much meta-programming as possible. Please use the `render_collection` method instead. This will be removed in 0.3.0. TEXT render_collection collection end def show(object = {}) ActiveSupport::Deprecation.warn <<-TEXT.squish Using `super` is now deprecated. We're aiming to removing as much meta-programming as possible. Please use the `render_instance` method instead. This will be removed in 0.3.0. TEXT render_instance object end end end end end
Version data entries
6 entries across 6 versions & 2 rubygems