link2 0.1.4 → 0.1.5
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/TODO +3 -0
- data/lib/link2/brain.rb +1 -1
- data/lib/link2/version.rb +1 -1
- metadata +2 -2
data/TODO
CHANGED
@@ -28,6 +28,9 @@ TODO
|
|
28
28
|
|
29
29
|
* Check Rails 3 compatibility.
|
30
30
|
|
31
|
+
|
32
|
+
* Integration tests for namespaced controllers/models
|
33
|
+
|
31
34
|
NOT SURE:
|
32
35
|
|
33
36
|
* Make Link2 parse label and title-attribute for the link based on configuration: Link2.label_method = :to_s, Link2.attr_methods = {:title => :description}
|
data/lib/link2/brain.rb
CHANGED
@@ -196,7 +196,7 @@ module Link2
|
|
196
196
|
elsif resource.is_a?(String)
|
197
197
|
resource
|
198
198
|
else
|
199
|
-
options[:controller] ||= self.controller_name_for_resource(resource)
|
199
|
+
options[:controller] ||= "/%s" % self.controller_name_for_resource(resource)
|
200
200
|
options[:action] = action
|
201
201
|
options[:id] = resource.id if !resource.is_a?(Class) && ::Link2::Support.record_class?(resource)
|
202
202
|
|
data/lib/link2/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: link2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonas Grimfelt
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2010-03-
|
12
|
+
date: 2010-03-03 00:00:00 +01:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|