Module: SimpleCaptcha
- Defined in:
- lib/simple_captcha/view.rb,
lib/simple_captcha.rb,
lib/simple_captcha/image.rb,
lib/simple_captcha/utils.rb,
lib/simple_captcha/engine.rb,
lib/simple_captcha/version.rb,
lib/simple_captcha/controller.rb,
lib/simple_captcha/formtastic.rb,
lib/simple_captcha/middleware.rb,
lib/simple_captcha/form_builder.rb,
lib/simple_captcha/active_record.rb,
lib/simple_captcha/simple_captcha_data.rb
Overview
:nodoc
Defined Under Namespace
Modules: ControllerHelpers, FormBuilder, ImageHelpers, ModelHelpers, Utils, ViewHelper Classes: CustomFormBuilder, Engine, Middleware, SimpleCaptchaData
Constant Summary collapse
- VERSION =
"0.1.6".freeze
- @@image_size =
"100x28"
- @@length =
5
- @@image_style =
'simply_blue'
- @@distortion =
'low'
- @@image_magick_path =
''
Class Method Summary collapse
Class Method Details
.add_image_style(name, params = []) ⇒ Object
43 44 45 |
# File 'lib/simple_captcha.rb', line 43 def self.add_image_style(name, params = []) SimpleCaptcha::ImageHelpers.image_styles.update(name.to_s => params) end |
.setup {|_self| ... } ⇒ Object
47 48 49 |
# File 'lib/simple_captcha.rb', line 47 def self.setup yield self end |