Sha256: 69db23a5eb2cd2956983a0455600bcc98d2d4d7addbbbe43b35b9576a644a60e
Contents?: true
Size: 538 Bytes
Versions: 2
Compression:
Stored size: 538 Bytes
Contents
require "http_basic_authentication/patches/application_controller_patch" require "http_basic_authentication/patches/account_controller_patch" module HttpBasicAuthentication # This module holds all patches of a default Redmine application module Patches # Apply all patches def self.apply! apply_to(::ApplicationController, ApplicationControllerPatch) apply_to(::AccountController, AccountControllerPatch) end private def self.apply_to(target, mod) target.send(:include, mod) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
redmine-http_basic_authentication-0.0.2 | lib/http_basic_authentication/patches.rb |
redmine-http_basic_authentication-0.0.1 | lib/http_basic_authentication/patches.rb |