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
move active_record requires inside the self.included block
automatthew (author)
Wed Jul 02 06:34:00 -0700 2008
commit  42a8d0d94de4902a90ab1cfc342aeed27a9f65d6
tree    86f4181e58586342be4ddef078e0469953e3ec0f
parent  62d18b26219fb37acdaf0c3808d642c81f9d98ab
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
...
31
32
33
 
 
 
 
 
 
 
 
 
 
34
35
36
...
 
 
 
 
 
 
 
 
 
 
 
1
2
3
...
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
0
@@ -1,14 +1,3 @@
0
-class Symbol
0
- # Protect ActiveRecord from itself by undefining the to_proc method.
0
- # Don't worry, AR will redefine it.
0
- alias :extensions_to_proc :to_proc
0
- remove_method :to_proc
0
-end
0
-require 'active_record'
0
-require "#{File.dirname(__FILE__)}/active_record/tasks/schema" if defined?(Rake)
0
-require "#{File.dirname(__FILE__)}/active_record/tasks/generate" if defined?(Rake)
0
-
0
-
0
 module Waves
0
   module Layers
0
     module ORM
0
@@ -31,6 +20,16 @@ module Waves
0
         
0
         def self.included(app)
0
           
0
+ class Symbol
0
+ # Protect ActiveRecord from itself by undefining the to_proc method.
0
+ # Don't worry, AR will redefine it.
0
+ alias :extensions_to_proc :to_proc
0
+ remove_method :to_proc
0
+ end
0
+ require 'active_record'
0
+ require "#{File.dirname(__FILE__)}/active_record/tasks/schema" if defined?(Rake)
0
+ require "#{File.dirname(__FILE__)}/active_record/tasks/generate" if defined?(Rake)
0
+
0
           def app.database
0
             unless @database
0
               ::ActiveRecord::Base.establish_connection(config.database)

Comments

    No one has commented yet.