Sha256: 9d1194b0028fd335ba48a3729a312ffa205f2e1d6a7072e232f78d4f33a0d173
Contents?: true
Size: 595 Bytes
Versions: 3
Compression:
Stored size: 595 Bytes
Contents
require 'fiona7/obj_class_name_mangler' module Fiona7 class ForbiddenObjClasses SYSTEM_CLASSES = ['X_Generic', 'X_Image', 'X_Container'].freeze def call self.system_obj_classes + self.widget_obj_classes end def all self.call end def system_obj_classes SYSTEM_CLASSES end def widget_obj_classes # NOTE: to_s handles shadow classes properly widget_classes = Scrivito.models.widgets.map(&:to_s) widget_classes.map do |obj_class| Fiona7::ObjClassNameMangler.new(obj_class).mangle end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
infopark_fiona7-1.6.1.1.5 | lib/fiona7/forbidden_obj_classes.rb |
infopark_fiona7-1.6.1.1.1 | lib/fiona7/forbidden_obj_classes.rb |
infopark_fiona7-1.6.1.1.0 | lib/fiona7/forbidden_obj_classes.rb |