Update comments
This commit is contained in:
parent
2760a064b5
commit
54baee957e
|
@ -21,7 +21,7 @@ Idea by: https://ruby-china.org/topics/20558#reply4
|
||||||
|
|
||||||
## Requirements
|
## Requirements
|
||||||
|
|
||||||
- ImageMagick 6.9+
|
- ImageMagick
|
||||||
|
|
||||||
#### Ubuntu
|
#### Ubuntu
|
||||||
|
|
||||||
|
@ -55,8 +55,8 @@ Create `config/initializers/rucaptcha.rb`
|
||||||
RuCaptcha.configure do
|
RuCaptcha.configure do
|
||||||
# Number of chars, default: 4
|
# Number of chars, default: 4
|
||||||
self.len = 4
|
self.len = 4
|
||||||
# Image font size, default: 48
|
# Image font size, default: 45
|
||||||
self.font_size = 48
|
self.font_size = 45
|
||||||
# Cache generated images in file store, this is config files limit, default: 100
|
# Cache generated images in file store, this is config files limit, default: 100
|
||||||
# set 0 to disable file cache.
|
# set 0 to disable file cache.
|
||||||
self.cache_limit = 100
|
self.cache_limit = 100
|
||||||
|
|
|
@ -2,7 +2,7 @@ module RuCaptcha
|
||||||
class Configuration
|
class Configuration
|
||||||
# TODO: remove height, width in 0.3.0
|
# TODO: remove height, width in 0.3.0
|
||||||
attr_accessor :height, :width
|
attr_accessor :height, :width
|
||||||
# Image font size, default 48
|
# Image font size, default 45
|
||||||
attr_accessor :font_size
|
attr_accessor :font_size
|
||||||
# Number of chars, default 4
|
# Number of chars, default 4
|
||||||
attr_accessor :len
|
attr_accessor :len
|
||||||
|
|
Loading…
Reference in New Issue