Sha256: 745af5aa96b1e9ce70e8897fca35b5f9bb3066e7d5a5c350524405507f95600b

Contents?: true

Size: 510 Bytes

Versions: 5

Compression:

Stored size: 510 Bytes

Contents

# -*- encoding : utf-8 -*-

class TweakRecaptchaSettingCards < Cardio::Migration::Core
  def up
    ensure_card name: "*recaptcha settings", type_id: Card::BasicID
    ensure_card name: "*recaptcha settings+*self+*structure",
                content: <<-STRING
{{+public key}}
{{+private key}}
{{+proxy}}
    STRING
    %w(public_key private_key proxy).each do |name|
      ensure_card name: "#{Card[:recaptcha_settings].name}+#{name.tr('_', ' ')}",
                  type_id: Card::PhraseID
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
card-1.101.4 db/migrate_core_cards/20161102202156_tweak_recaptcha_setting_cards.rb
card-1.101.3 db/migrate_core_cards/20161102202156_tweak_recaptcha_setting_cards.rb
card-1.101.2 db/migrate_core_cards/20161102202156_tweak_recaptcha_setting_cards.rb
card-1.101.1 db/migrate_core_cards/20161102202156_tweak_recaptcha_setting_cards.rb
card-1.101.0 db/migrate_core_cards/20161102202156_tweak_recaptcha_setting_cards.rb