RubyGems
npm
Organizations
Log in
Sign up
RubyGems
genki-merb_component
Versions diffs
0.1.0 → 0.1.1
genki-merb_component 0.1.0 → 0.1.1
Sign up to get
free
protection for your applications and to get access to all the features.
Files changed (3)
hide
show
data/Rakefile
+1
-1
data/lib/merb_component/model_ext.rb
+1
-1
metadata
+1
-1
data/Rakefile
CHANGED
Viewed
@@ -5,7 +5,7 @@ require 'merb-core'
5
5
require 'merb-core/tasks/merb'
6
6
7
7
GEM_NAME = "merb_component"
8
-
GEM_VERSION = "0.1.
0
"
8
+
GEM_VERSION = "0.1.
1
"
9
9
AUTHOR = "Genki Takiuchi"
10
10
EMAIL = "genki@s21g.com"
11
11
HOMEPAGE = "http://blog.s21g.com/genki"
data/lib/merb_component/model_ext.rb
CHANGED
Viewed
@@ -11,7 +11,7 @@ module DataMapper::Model
11
11
end
12
12
13
13
def relation
14
-
Thread::current[:relation].last
14
+
(
Thread::current[:relation]
|| [])
.last
15
15
end
16
16
17
17
private
metadata
CHANGED
Viewed
@@ -1,7 +1,7 @@
1
1
--- !ruby/object:Gem::Specification
2
2
name: genki-merb_component
3
3
version: !ruby/object:Gem::Version
4
-
version: 0.1.
0
4
+
version: 0.1.
1
5
5
platform: ruby
6
6
authors:
7
7
- Genki Takiuchi