Sha256: b8ad4a546c5bed0854e45039d2f14d46b9ea5f88f1a493ffb1e2d0ac48efc2c5
Contents?: true
Size: 592 Bytes
Versions: 3
Compression:
Stored size: 592 Bytes
Contents
require 'rails' require 'acts_as_textcaptcha/textcaptcha_config' namespace :textcaptcha do desc "Creates an example textcaptcha config at config/textcaptcha.yml" task :config do path = File.join((Rails.root ? Rails.root : '.'), 'config', 'textcaptcha.yml') if File.exist?(path) puts "Ooops, a textcaptcha config file at #{path} already exists ... aborting." else ActsAsTextcaptcha::TextcaptchaConfig.create(path: path) puts "Done, config generated at #{path}\nEdit this file to add your TextCaptcha API key (see http://textcaptcha.com)." end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
acts_as_textcaptcha-4.5.1 | lib/acts_as_textcaptcha/tasks/textcaptcha.rake |
acts_as_textcaptcha-4.5.0 | lib/tasks/textcaptcha.rake |
acts_as_textcaptcha-4.4.1 | lib/tasks/textcaptcha.rake |