Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

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