39
40
41
42
43
44
45
46
47
48
49
50
|
# File 'lib/custom_captcha/action_view_extension.rb', line 39
def custom_captcha(options={})
return "" unless (@object.custom_captcha_key rescue nil)
options[:object_name] = @object_name.to_s
options[:key] = @object.custom_captcha_key
options[:field_name] = object_field_name options[:object_name], CustomCaptcha::DEFAULTVALUE[:field_name]
options[:key_name] = object_field_name options[:object_name], CustomCaptcha::DEFAULTVALUE[:key_name]
options[:key_id] = object_field_id options[:object_name], CustomCaptcha::DEFAULTVALUE[:key_id]
options[:img_id] = object_field_id options[:object_name], CustomCaptcha::DEFAULTVALUE[:img_id]
@template.display_custom_captcha(options)
end
|