lib/docman/config.rb in docman-0.0.76 vs lib/docman/config.rb in docman-0.0.77

- old
+ new

@@ -21,14 +21,19 @@ end def merge_config_from_file(file) config = YAML::load_file(file) @config.deep_merge(config) + @config['version'] = config['version'].nil? ? 1 : config['version'] assign_to_self end def config_hash Digest::MD5.hexdigest(Marshal::dump(@unmutable_config)) + end + + def version + @config['version'] end end end