24 lines
473 B
Ruby
24 lines
473 B
Ruby
require 'rubygems'
|
|
|
|
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
|
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
|
|
|
require 'rucaptcha'
|
|
|
|
tmp_path = File.join(File.dirname(__FILE__), '../tmp')
|
|
Dir.mkdir(tmp_path) unless File.exist?(tmp_path)
|
|
|
|
module Rails
|
|
class << self
|
|
def root
|
|
Pathname.new(File.join(File.dirname(__FILE__), '..'))
|
|
end
|
|
end
|
|
end
|
|
|
|
RuCaptcha.configure do
|
|
self.len = 2
|
|
self.font_size = 48
|
|
self.implode = 0.111
|
|
end
|