Browse files

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

  • Loading branch information...
1 parent 1253089 commit e50f677c4b8420e18238265f4bb03cc86a762d6e Zach Inglis committed Nov 4, 2011
Showing with 6 additions and 1 deletion.
  1. +3 −0 CHANGELOG
  2. +2 −0 README.textile
  3. +1 −1 lib/crummy/action_controller.rb
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

0 comments on commit e50f677

Please sign in to comment.