Sha256: 82e01d9de8864dfe22bc1e47c97ecbfb356b06c520f9fdff9e7d474cf27d8f65

Contents?: true

Size: 748 Bytes

Versions: 16

Compression:

Stored size: 748 Bytes

Contents

# encoding: utf-8

# 基本設定を記述する
module Flextures
  module Config
    @@read_onlys=[]
    @@configs={
      fixture_load_directory: "spec/fixtures/",
      fixture_dump_directory: "spec/fixtures/",
      init_all_tables: false,  # 実行後に全テーブルの初期化を行うか?falseにするとそのぶん高速化できる
      ignore_tables: ["schema_migrations"],
    }
    # ハッシュをsetter、getterに変換
    class<< self
      @@configs.each do |setting_key, setting_value|
        define_method(setting_key){ @@configs[setting_key] }
        define_method("#{setting_key}="){ |arg| @@configs[setting_key]=arg } unless @@read_onlys.include?(setting_key)
      end
    end
  end
end


Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
flextures-2.1.0 lib/flextures/flextures_base_config.rb
flextures-2.0.9 lib/flextures/flextures_base_config.rb
flextures-2.0.8 lib/flextures/flextures_base_config.rb
flextures-2.0.7 lib/flextures/flextures_base_config.rb
flextures-2.0.6 lib/flextures/flextures_base_config.rb
flextures-2.0.5 lib/flextures/flextures_base_config.rb
flextures-2.0.4 lib/flextures/flextures_base_config.rb
flextures-2.0.3 lib/flextures/flextures_base_config.rb
flextures-2.0.2 lib/flextures/flextures_base_config.rb
flextures-2.0.1 lib/flextures/flextures_base_config.rb
flextures-2.0.0 lib/flextures/flextures_base_config.rb
flextures-1.9.16 lib/flextures/flextures_base_config.rb
flextures-1.9.15 lib/flextures/flextures_base_config.rb
flextures-1.9.14 lib/flextures/flextures_base_config.rb
flextures-1.9.13 lib/flextures/flextures_base_config.rb
flextures-1.9.12 lib/flextures/flextures_base_config.rb