ardm 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/ardm/active_record/repository.rb +3 -3
- data/lib/ardm/data_mapper/record.rb +2 -2
- data/lib/ardm/version.rb +1 -1
- metadata +2 -2
@@ -5,12 +5,12 @@ module Ardm
|
|
5
5
|
module Repository
|
6
6
|
extend ActiveSupport::Concern
|
7
7
|
|
8
|
-
def repository(name=nil)
|
9
|
-
self.class.repository
|
8
|
+
def repository(name=nil, &block)
|
9
|
+
self.class.repository(name, &block)
|
10
10
|
end
|
11
11
|
|
12
12
|
module ClassMethods
|
13
|
-
def repository(name=nil)
|
13
|
+
def repository(name=nil, &block)
|
14
14
|
if name && name != :default
|
15
15
|
raise Ardm::NotImplemented, "Alternate repository names not supported"
|
16
16
|
end
|
data/lib/ardm/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ardm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2014-10-
|
13
|
+
date: 2014-10-24 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: activesupport
|