Skip to content

Commit

Permalink
Aligned the establish connection paramater handling to be similar to …
Browse files Browse the repository at this point in the history
…latest version of rails
  • Loading branch information
kandadaboggu committed May 1, 2015
1 parent 38533b8 commit e1b1eeb
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -9,7 +9,7 @@ def self.load_cpk_adapter(adapter)
end
end

def self.establish_connection(spec = ENV["DATABASE_URL"])
def self.establish_connection(spec = nil)
spec ||= ActiveRecord::ConnectionHandling::DEFAULT_ENV.call.to_sym
resolver = ConnectionAdapters::ConnectionSpecification::Resolver.new configurations
spec = resolver.spec(spec)
Expand Down

0 comments on commit e1b1eeb

Please sign in to comment.