Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[FIXED] Bug where everything was getting parsed as an Array. — Closes #…

  • Loading branch information...
commit e50f677c4b8420e18238265f4bb03cc86a762d6e 1 parent 1253089
Zach Inglis authored
3  CHANGELOG
... ... @@ -1,3 +1,6 @@
  1 +1.3.1
  2 +* [FIXED] Bug where everything was getting parsed as an Array.
  3 +
1 4 1.3
2 5 * [FIXED] html_safe! is no longer called by default. That's the user's prerogative to do now.
3 6 * [ADDED] Allow record to respond to to_s even if you pass a url or block.
2  README.textile
Source Rendered
@@ -103,8 +103,10 @@ h2. Notes
103 103 h2. Todo
104 104
105 105 * Port over rspecs from project to plugin (Fully tested in a project)
  106 +* Accept collections of models as a single argument
106 107 * Accept instances of models as a single argument
107 108 * Allow for variables in names. (The workaround is to do your own before_filter for that currently)
  109 +* Make a crumbs? type method
108 110
109 111 h2. Credits
110 112
2  lib/crummy/action_controller.rb
@@ -18,7 +18,7 @@ def add_crumb(name, *args)
18 18 url = instance.send url if url.is_a? Symbol
19 19
20 20 if url.present?
21   - if url.kind_of? Enumerable
  21 + if url.kind_of? Array
22 22 url.map! do |name|
23 23 name.is_a?(Symbol) ? instance.instance_variable_get("@#{name}") : name
24 24 end

0 comments on commit e50f677

Please sign in to comment.
Something went wrong with that request. Please try again.