Skip to content

Commit

Permalink
rename Toshi#connect to Toshi#connect_database
Browse files Browse the repository at this point in the history
  • Loading branch information
lian committed Sep 11, 2014
1 parent 6a85619 commit 6069d79
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/environment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
STDOUT.sync = true unless Toshi.env == :production

# connect db
Toshi.connect
Toshi.connect_database

def error_handler ex, ctx_hash
p ex
Expand Down
2 changes: 1 addition & 1 deletion lib/toshi/db.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module Toshi
class << self
attr_accessor :db

def connect
def connect_database
self.db = Sequel.connect(settings[:database_url])
end
end
Expand Down

0 comments on commit 6069d79

Please sign in to comment.