Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Refactored action_controller slightly

  • Loading branch information...
commit 6bca552e23880c03bf0f0966e38814b50940716a 1 parent 7b997e1
Zach Inglis authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/crummy/action_controller.rb
View
4 lib/crummy/action_controller.rb
@@ -23,7 +23,9 @@ def add_crumb(name, *args)
name.is_a?(Symbol) ? instance.instance_variable_get("@#{name}") : name
end
end
- url = instance.send :url_for, url unless url.is_a? String
+ if not url.kind_of? String
+ url = instance.send :url_for, url
+ end
end
# Get the return value of the name if its a proc.
Please sign in to comment.
Something went wrong with that request. Please try again.