lib/docman/docroot_config.rb in docman-0.0.87 vs lib/docman/docroot_config.rb in docman-0.0.88

- old
+ new

@@ -168,11 +168,19 @@ @names[name] end def states_dependin_on(name, version) states = {} - project(name).states.each do |state, info| - states[state] = info if info['version'] == version + master_project = project(name) + if master_project.has_key?('states_project') + states_project = project(master_project['states_project']) + states_project.states.each do |state, info| + states[state] = info if info['version'] == version + end + else + master_project.states.each do |state, info| + states[state] = info if info['version'] == version + end end states end def config_hash