Sha256: 34c86f5462ade350bb9949e38bff3449e5c0a810775770bf80d0928ba3a5c986
Contents?: true
Size: 883 Bytes
Versions: 7
Compression:
Stored size: 883 Bytes
Contents
# frozen_string_literal: true module SolidusReviews module Spree module Api module ApiHelpersDecorator def self.prepended(base) base.module_eval do @@review_attributes = [ :id, :product_id, :name, :location, :rating, :title, :review, :approved, :created_at, :updated_at, :user_id, :ip_address, :locale, :show_identifier, :verified_purchaser ] @@feedback_review_attributes = [ :id, :user_id, :review_id, :rating, :comment, :created_at, :updated_at, :locale ] def review_attributes @@review_attributes end def feedback_review_attributes @@feedback_review_attributes end end end ::Spree::Api::ApiHelpers.prepend self end end end end
Version data entries
7 entries across 7 versions & 1 rubygems