File: user_patch.rb

package info (click to toggle)
redmine-plugin-simple-captcha 1.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 104 kB
  • sloc: ruby: 79; makefile: 2
file content (22 lines) | stat: -rw-r--r-- 535 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# SPDX-License-Identifier: MIT
# SPDX-FileCopyrightText: 2025 Soren Stoutner <soren@stoutner.com>
#
# This file is part of Redmine Simple Captcha.  <https://github.com/sorenstoutner/redmine_simple_captcha>
# See LICENSE for more information.

require_dependency 'project'
require_dependency 'principal'
require_dependency 'user'
module UserPatch
  def self.included(base)
    base.send(:include, InstanceMethods)
  end

  module InstanceMethods
    def simple_captcha_answer
      nil
    end
  end
end

User.send(:include, UserPatch)