Sha256: 2e3713c244a637518984aef9253032e122b01f25a74fc1939ee8e0d1ef5a9625

Contents?: true

Size: 248 Bytes

Versions: 30

Compression:

Stored size: 248 Bytes

Contents

event :validate_recaptcha_secret_key, :validate do
  return if content.match?(/^[a-zA-Z0-9\-_]*$/)

  errors.add :content, "invalid key" # LOCALIZE
end

event :set_recaptcha_secret_key, :finalize do
  Card.config.recaptcha_secret_key = content
end

Version data entries

30 entries across 30 versions & 2 rubygems

Version Path
card-mod-recaptcha-0.14.2 set/self/recaptcha_secret_key.rb
card-mod-recaptcha-0.14.1 set/self/recaptcha_secret_key.rb
card-mod-recaptcha-0.14.0 set/self/recaptcha_secret_key.rb
card-mod-recaptcha-0.13.4 set/self/recaptcha_secret_key.rb
card-mod-recaptcha-0.13.3 set/self/recaptcha_secret_key.rb
card-mod-recaptcha-0.13.2 set/self/recaptcha_secret_key.rb
card-mod-recaptcha-0.13.1 set/self/recaptcha_secret_key.rb
card-mod-recaptcha-0.13.0 set/self/recaptcha_secret_key.rb
card-mod-recaptcha-0.11.7 set/self/recaptcha_secret_key.rb
card-mod-recaptcha-0.12.0 set/self/recaptcha_secret_key.rb
card-mod-recaptcha-0.11.6 set/self/recaptcha_secret_key.rb
card-mod-recaptcha-0.11.5 set/self/recaptcha_secret_key.rb
card-mod-recaptcha-0.11.4 set/self/recaptcha_secret_key.rb
card-mod-recaptcha-0.11.3 set/self/recaptcha_secret_key.rb
card-mod-recaptcha-0.11.2 set/self/recaptcha_secret_key.rb
card-mod-recaptcha-0.11.1 set/self/recaptcha_secret_key.rb
card-mod-recaptcha-0.11.0 set/self/recaptcha_secret_key.rb
card-mod-recaptcha-0.1 set/self/recaptcha_secret_key.rb
card-1.100.0 mod/recaptcha/set/self/recaptcha_secret_key.rb
card-1.99.6 mod/recaptcha/set/self/recaptcha_secret_key.rb