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.
Files changed (4) hide show
  1. data/TODO +3 -0
  2. data/lib/link2/brain.rb +1 -1
  3. data/lib/link2/version.rb +1 -1
  4. 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}
@@ -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
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  module Link2
4
- VERSION = '0.1.4'.freeze
4
+ VERSION = '0.1.5'.freeze
5
5
  end
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
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-02 00:00:00 +01:00
12
+ date: 2010-03-03 00:00:00 +01:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency