lib/space/models/repos.rb in space-0.0.2 vs lib/space/models/repos.rb in space-0.0.3

- old
+ new

@@ -29,17 +29,17 @@ def scoped? size != self.class.all.size end # def name - # "#{App.config.name}-(#{names.join('|').gsub("#{App.config.name}-", '')})" + # "#{App.name}-(#{names.join('|').gsub("#{App.config.name}-", '')})" # end def find_by_name(name) detect { |repo| repo.name == name } end def self_and_dependencies - self.class.new(map { |repo| [repo.name] + repo.dependencies }.flatten.uniq) + self.class.new(map { |repo| [repo] + repo.dependencies }.flatten.uniq) end end end