获取加载database_clenaergem版本
Get loaded database_clenaer gem version
DatabaseCleaner doesn't expose a way to inquiry the version. The version is done via YAML file。我怎么知道加载的 gem 版本?
你可以load the specification from RubyGems:
Gem.loaded_specs["database_cleaner"].version.to_s
DatabaseCleaner doesn't expose a way to inquiry the version. The version is done via YAML file。我怎么知道加载的 gem 版本?
你可以load the specification from RubyGems:
Gem.loaded_specs["database_cleaner"].version.to_s