Browse files

The output mechanism would hapily render json with no "parameter" nod…

…e, however the import puked... this should fix that.
  • Loading branch information...
1 parent bd58894 commit 4c3e09f1a3f2c7218c2b6e7d1421de7ffd23cc68 @darrylkuhn darrylkuhn committed Aug 9, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 views/_parameters.haml
View
2 views/_parameters.haml
@@ -1,6 +1,6 @@
%ul.parameters
-param_count = 0
- -if m.parameters.length > 0
+ -if defined?(:m.parameters) && m.parameters.length > 0
-m.parameters.each do |p|
-param_count=param_count+1

0 comments on commit 4c3e09f

Please sign in to comment.