module HttpBasicAuthentication::Patches

This module holds all patches of a default Redmine application

Public Class Methods

apply!() click to toggle source

Apply all patches

# File lib/http_basic_authentication/patches.rb, line 8
def self.apply!
  apply_to(::ApplicationController, ApplicationControllerPatch)
  apply_to(::AccountController, AccountControllerPatch)
end

Private Class Methods

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