Explorar o código

db methode als class method

burningTyger %!s(int64=8) %!d(string=hai) anos
pai
achega
04d8eddbe1
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      lib/schild.rb

+ 1 - 1
lib/schild.rb

@@ -48,7 +48,7 @@ module Schild
   @db.extension(:connection_validator)
 
   # gibt die Datenbank zurück
-  def db
+  def self.db
     @db
   end