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-1.99.5 mod/recaptcha/set/self/recaptcha_secret_key.rb
card-1.99.4 mod/recaptcha/set/self/recaptcha_secret_key.rb
card-1.99.3 mod/recaptcha/set/self/recaptcha_secret_key.rb
card-1.99.2 mod/admin/set/self/recaptcha_secret_key.rb
card-1.99.1 mod/admin/set/self/recaptcha_secret_key.rb
card-1.99.0 mod/admin/set/self/recaptcha_secret_key.rb
card-1.98.3 mod/admin/set/self/recaptcha_secret_key.rb
card-1.98.2 mod/admin/set/self/recaptcha_secret_key.rb
card-1.98.1 mod/admin/set/self/recaptcha_secret_key.rb
card-1.98.0 mod/admin/set/self/recaptcha_secret_key.rb