lib/scrivito/attribute_content.rb in scrivito_sdk-0.30.0 vs lib/scrivito/attribute_content.rb in scrivito_sdk-0.40.0.rc1

- old
+ new

@@ -57,19 +57,18 @@ key = key.to_s has_attribute?(key) ? read_attribute(key) : nil end - # Hook method to control which widget classes should be available for this page. - # Override it to allow only certain classes or none. + # Hook method to control which widget classes should be available for this page + # or widget. Override it to allow only certain classes or none. # Must return either +NilClass+, or +Array+. # - # If +nil+ is returned (default), then all widget classes will be available for this page. + # If +nil+ is returned (default), then all widget classes will be available for this page or widget. # # If +Array+ is returned, then it should include desired class names. # Each class name must be either a +String+ or a +Symbol+. - # Only this class names will be available for this page. - # Order of the class names will be preserved. + # Only these class names will be available and their order will be preserved. # # @param [String] field_name Name of the widget field. # @return [nil, Array<Symbol, String>] # @api public def valid_widget_classes_for(field_name)