Skip to content
Snippets Groups Projects
Commit 5fd0ab79 authored by danielgrippi's avatar danielgrippi Committed by Maxwell Salzberg
Browse files

attempt to make travis happy

parent 4e014d8a
No related branches found
No related tags found
No related merge requests found
......@@ -19,9 +19,12 @@ class Server
end
def self.all
@servers ||= ActiveRecord::Base.configurations.keys.select{
|k| k.include?("integration")
}.map{ |k| self.new(k) }
@servers ||= lambda {
keys = ActiveRecord::Base.configurations.keys.select{
|k| k.include?("integration")
}
keys ? keys.map{ |k| self.new(k) } : []
}.call
end
attr_reader :port, :env
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment