module PerUserStatus::Patches

This module holds all patches of a default Redmine application

Public Class Methods

apply!() click to toggle source

Apply all patches

# File lib/per_user_status/patches.rb, line 7
def self.apply!
  apply_to(::User, UserPatch)
end

Private Class Methods

apply_to(target, mod) click to toggle source
# File lib/per_user_status/patches.rb, line 13
def self.apply_to(target, mod)
  target.send(:include, mod)
end