Sha256: c812b8c8a8d387905df2d171247b781906fe806e09ca85ab3dce5600b80be11b
Contents?: true
Size: 656 Bytes
Versions: 29
Compression:
Stored size: 656 Bytes
Contents
module Spree module Api module V2 module Platform class CmsSectionsController < ResourceController private def model_class Spree::CmsSection end def spree_permitted_attributes stored_attributes = [] Spree::CmsSection::TYPES.each do |type| type.constantize.stored_attributes.each do |_name, values| values.each do |value| stored_attributes << value end end end super + stored_attributes.compact.uniq! end end end end end end
Version data entries
29 entries across 29 versions & 3 rubygems