gretel 1.0.8 → 1.0.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/gretel/helper_methods.rb +5 -1
  2. metadata +10 -7
@@ -39,7 +39,11 @@ module Gretel
39
39
  name, object = args[0], args[1]
40
40
 
41
41
  crumb = Crumbs.get_crumb(name, object)
42
- out = link_to_if(link_last, crumb.link.text, crumb.link.url, crumb.link.options)
42
+ if link_last
43
+ out = link_to_if(link_last, crumb.link.text, crumb.link.url, crumb.link.options.merge(:class => "current"))
44
+ else
45
+ out = content_tag(:span, crumb.link.text, :class => "current")
46
+ end
43
47
 
44
48
  while parent = crumb.parent
45
49
  last_parent = parent.name
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gretel
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: false
4
+ hash: 5
5
+ prerelease:
5
6
  segments:
6
7
  - 1
7
8
  - 0
8
- - 8
9
- version: 1.0.8
9
+ - 9
10
+ version: 1.0.9
10
11
  platform: ruby
11
12
  authors:
12
13
  - Lasse Bunk
@@ -14,8 +15,7 @@ autorequire:
14
15
  bindir: bin
15
16
  cert_chain: []
16
17
 
17
- date: 2012-01-06 00:00:00 +01:00
18
- default_executable:
18
+ date: 2012-05-09 00:00:00 Z
19
19
  dependencies: []
20
20
 
21
21
  description: Gretel is a Ruby on Rails plugin that makes it easy yet flexible to create breadcrumbs.
@@ -35,7 +35,6 @@ files:
35
35
  - lib/gretel/link.rb
36
36
  - lib/gretel/parent.rb
37
37
  - lib/gretel.rb
38
- has_rdoc: true
39
38
  homepage: http://github.com/lassebunk/gretel
40
39
  licenses: []
41
40
 
@@ -45,23 +44,27 @@ rdoc_options: []
45
44
  require_paths:
46
45
  - lib
47
46
  required_ruby_version: !ruby/object:Gem::Requirement
47
+ none: false
48
48
  requirements:
49
49
  - - ">="
50
50
  - !ruby/object:Gem::Version
51
+ hash: 3
51
52
  segments:
52
53
  - 0
53
54
  version: "0"
54
55
  required_rubygems_version: !ruby/object:Gem::Requirement
56
+ none: false
55
57
  requirements:
56
58
  - - ">="
57
59
  - !ruby/object:Gem::Version
60
+ hash: 3
58
61
  segments:
59
62
  - 0
60
63
  version: "0"
61
64
  requirements: []
62
65
 
63
66
  rubyforge_project:
64
- rubygems_version: 1.3.6
67
+ rubygems_version: 1.8.21
65
68
  signing_key:
66
69
  specification_version: 3
67
70
  summary: Flexible Ruby on Rails breadcrumbs plugin.