public
Rubygem
Description: Resource-oriented open source Ruby framework for Web apps.
Homepage: http://rubywaves.com/
Clone URL: git://github.com/dyoder/waves.git
Search Repo:
only try to set dataset if model responds to such
automatthew (author)
Fri Jul 25 06:43:44 -0700 2008
commit  f56c22153a0a43c28f13b2101a9da4212d7390ee
tree    3cee789ffdc8b5d02a1b1202ebfa363499b35586
parent  fb83c36efc1f4c5febc04b48d466444638544aac
...
44
45
46
47
 
 
 
48
49
50
...
44
45
46
 
47
48
49
50
51
52
0
@@ -44,7 +44,9 @@ module Waves
0
               if @dataset && @dataset.opts[:from] != [ default ]
0
                 # don't clobber dataset from autoloaded file
0
               else
0
- set_dataset Waves.application.database[ basename.snake_case.pluralize.intern ]
0
+ if respond_to? :set_dataset
0
+ set_dataset Waves.application.database[ basename.snake_case.pluralize.intern ]
0
+ end
0
               end
0
             end
0
           end

Comments

    No one has commented yet.