Module: Asciiptcha
- Defined in:
- lib/asciiptcha.rb,
lib/asciiptcha/railtie.rb,
lib/asciiptcha/operations.rb,
lib/asciiptcha/view_helpers.rb,
lib/asciiptcha/controller_helpers.rb
Defined Under Namespace
Modules: ControllerHelpers, ViewHelpers Classes: Configuration, EncryptionKeyNotSet, Railtie
Class Method Summary collapse
-
.configuration ⇒ Object
(also: config)
Accessor for Asciiptcha::Configuration.
-
.configure {|configuration| ... } ⇒ Object
Example: Asciiptcha.configure do |config| config.captcha_length = 6 end.
Class Method Details
.configuration ⇒ Object Also known as: config
Accessor for Asciiptcha::Configuration
20 21 22 |
# File 'lib/asciiptcha.rb', line 20 def configuration @configuration ||= Configuration.new end |
.configure {|configuration| ... } ⇒ Object
Example:
Asciiptcha.configure do |config|
config.captcha_length = 6
end
15 16 17 |
# File 'lib/asciiptcha.rb', line 15 def configure yield configuration end |