Sha256: b61d7d7b77f755c9e45d1908a485bdfa68dec8125935dd019225955f8f8699e3

Contents?: true

Size: 242 Bytes

Versions: 30

Compression:

Stored size: 242 Bytes

Contents

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

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

event :set_recaptcha_site_key, :finalize do
  Card.config.recaptcha_site_key = content
end

Version data entries

30 entries across 30 versions & 2 rubygems

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