GitHub Sale: sign up for any paid plan this week and pay nothing until January 1, 2009!  [ hide ]

public
Rubygem
Description: Resource-oriented open source Ruby framework for Web apps.
Homepage: http://rubywaves.com/
Clone URL: git://github.com/dyoder/waves.git
better way to call Sequel in application.rb


git-svn-id: https://waves.googlecode.com/svn/trunk@10 
1a046131-c842-0410-aed1-15fd42da8445
automatthew (author)
Fri Feb 29 18:57:46 -0800 2008
commit  f822a7d5f8d9aad0b9cdfa843d96a2a4a9ab1132
tree    4dc1861e40efce42cb7f8a2c78a696d59fc6ccf0
parent  400aae3312163cf920c2cb42a7d6955843359f72
...
41
42
43
44
 
45
46
47
...
41
42
43
 
44
45
46
47
0
@@ -41,7 +41,7 @@ module <%= name %>
0
   # accessor methods for modules and other key application objects ...
0
   class << self
0
     def config ; Waves::Server.config rescue nil || Waves::Console.config ; end
0
- def database ; @database ||= Sequel.send(config.database[:adapter].to_sym, config.database ) ; end
0
+ def database ; @database ||= Sequel.open( config.database ) ; end
0
     def configurations ; <%= name %>::Configurations ; end
0
     def controllers ; <%= name %>::Controllers ; end
0
     def models ; <%= name %>::Models ; end

Comments

    No one has commented yet.