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