Sha256: 90e90e999b75abe3d06434991abd8be6751da4a070d1d3e4c9c277288855a8be
Contents?: true
Size: 611 Bytes
Versions: 3
Compression:
Stored size: 611 Bytes
Contents
# frozen_string_literal: true 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 || "."), "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 https://textcaptcha.com)." end end end
Version data entries
3 entries across 3 versions & 1 rubygems