Patch #32847

Ability to add custom css classes to body tag

Added by Aleksandar Pavic over 2 years ago. Updated over 2 years ago.

Status:NewStart date:
Priority:NormalDue date:
Assignee:-% Done:


Category:Plugin API
Target version:-


This ability is important for plugin developers to avoid unnecessary use of deface gem.

If it's going to be implemented, also wiki page for plugin developers should
be updated, accordingly.

body_css.patch Magnifier - Patches application_helper and application_controller adding ability to add custom css class from controller to view body tag... (1.89 KB) Aleksandar Pavic, 2020-01-21 07:43


#1 Updated by Holger Just over 2 years ago

The changed body_css_classes method is unfortunately not idempotent. Each call of the changed method will add the "normal" classes to the @css instance variable. Thus, if you call the method two times, the list of classes be doubled.

Also available in: Atom PDF