Module: TinyCaptcha
- Defined in:
- lib/tiny_captcha/view.rb,
lib/tiny_captcha.rb,
lib/tiny_captcha/image.rb,
lib/tiny_captcha/utils.rb,
lib/tiny_captcha/engine.rb,
lib/tiny_captcha/version.rb,
lib/tiny_captcha/controller.rb,
lib/tiny_captcha/formtastic.rb,
lib/tiny_captcha/middleware.rb,
lib/tiny_captcha/form_builder.rb,
lib/tiny_captcha/active_record.rb,
lib/tiny_captcha/tiny_captcha_data.rb,
lib/tiny_captcha/tiny_captcha_data_mongoid.rb,
app/helpers/tiny_captcha/application_helper.rb,
app/controllers/tiny_captcha/images_controller.rb,
app/controllers/tiny_captcha/application_controller.rb
Overview
:nodoc
Defined Under Namespace
Modules: ApplicationHelper, ControllerHelpers, FormBuilder, ImageHelpers, ModelHelpers, Utils, ViewHelper Classes: ApplicationController, CustomFormBuilder, Engine, ImagesController, Middleware, TinyCaptchaData
Constant Summary collapse
- VERSION =
"0.0.3"
- @@image_size =
"100x28"
- @@length =
6
- @@image_style =
'simply_blue'
- @@distortion =
'low'
- @@image_magick_path =
''
- @@tmp_path =
nil
- @@image_show_path =
'/tiny_captcha/images/show'
Class Method Summary collapse
Class Method Details
.add_image_style(name, params = []) ⇒ Object
56 57 58 |
# File 'lib/tiny_captcha.rb', line 56 def self.add_image_style(name, params = []) ::TinyCaptcha::ImageHelpers.image_styles.update(name.to_s => params) end |
.setup {|_self| ... } ⇒ Object
60 61 62 |
# File 'lib/tiny_captcha.rb', line 60 def self.setup yield self end |