kiss 1.8.5 → 1.8.6

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/VERSION +1 -1
  2. data/data/scaffold.tgz +0 -0
  3. data/lib/kiss/action.rb +2 -2
  4. metadata +3 -3
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.8.5
1
+ 1.8.6
Binary file
@@ -305,7 +305,7 @@ class Kiss
305
305
  end
306
306
 
307
307
  def breadcrumbs_html
308
- @breadcrumbs.map do |crumb|
308
+ @breadcrumbs.select {|b| !b[0].blank? }.map do |crumb|
309
309
  %Q(<a href="#{app + crumb[1]}">#{crumb[0]}</a> &gt;)
310
310
  end.join(' ')
311
311
  end
@@ -491,7 +491,7 @@ class Kiss
491
491
  # Return string result from rendering specified string or template options.
492
492
  def render_to_string(*args)
493
493
  args = args.clone
494
- options = args.pop
494
+ options = args.last.is_a?(Hash) ? args.pop : {}
495
495
  if args.first.is_a?(String)
496
496
  options = {:template => args.first}.merge(options)
497
497
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 8
8
- - 5
9
- version: 1.8.5
8
+ - 6
9
+ version: 1.8.6
10
10
  platform: ruby
11
11
  authors:
12
12
  - Shawn Van Ittersum
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2012-03-08 00:00:00 -08:00
17
+ date: 2012-03-09 00:00:00 -08:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency