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