sdb_dal 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/sdb_dal/domain_object.rb +3 -2
- metadata +1 -1
|
@@ -4,6 +4,7 @@ require File.dirname(__FILE__) +'/domain_attribute_description.rb'
|
|
|
4
4
|
require File.dirname(__FILE__) +"/reference.rb"
|
|
5
5
|
require File.dirname(__FILE__) +"/index_description.rb"
|
|
6
6
|
require File.dirname(__FILE__) +"/lazy_loading_text.rb"
|
|
7
|
+
require File.dirname(__FILE__) +"/repository_factory.rb"
|
|
7
8
|
module SdbDal
|
|
8
9
|
class DomainObject
|
|
9
10
|
|
|
@@ -545,9 +546,9 @@ def destroy(options={})
|
|
|
545
546
|
return self.class.repository
|
|
546
547
|
end
|
|
547
548
|
class << self
|
|
548
|
-
def repository(options=
|
|
549
|
+
def repository(options={})
|
|
549
550
|
|
|
550
|
-
if options
|
|
551
|
+
if options.has_key?(:repository)
|
|
551
552
|
return options[:repository]
|
|
552
553
|
end
|
|
553
554
|
|