You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First you need to register a path to directory. If you generated Rys via rys:plugin this step can be skipped.
# extend your engineinclude ::Rys::EngineExtensions# or manuallyRys::Patcher.paths << PATH_TO_DIRECTORY
Definition of the patch
Rys::Patcher.add(CLASS_TO_PATCH_IN_STRING)do# nothing# patch is applied after redmine plugins are loaded# :earlier_to_prepare# applied as soon as possiblewhereWHERE# Applied once. Useful for classes which are not reloaded (like String)apply_only_once!# Applied if CONDITION is metapply_ifdoCONDITIONend# Apply if redmine plugins exist and its installedapply_if_plugins:easy_crm_casesincludeddo# This section is evaluated in CLASS_TO_PATCH_IN_STRINGendinstance_methodsdo# Your instance methodsendinstance_methods(feature: FEATURE)do# Your conditional methodsendclass_methodsdo# Your class methodsendend