/usr/share/redmine/plugins/redmine_recaptcha/lib/client_helper_patch.rb is in redmine-plugin-recaptcha 0.1.0+git20121018-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | module ClientHelperPatch
def self.included(base)
base.send(:include, InstanceMethods)
base.class_eval do
alias_method_chain :recaptcha_tags, :flash_remove
end
end
module InstanceMethods
def recaptcha_tags_with_flash_remove(options={})
html = recaptcha_tags_without_flash_remove( options )
flash.delete( :recaptcha_error )
return html
end
end
end
|