Symbols aren't strings :-(

This commit is contained in:
Yuki 2015-07-19 23:26:59 +05:30
parent 660972a70f
commit 6f6ab1cf8a
2 changed files with 4 additions and 4 deletions

View file

@ -283,9 +283,9 @@ namespace :justask do
if value.is_a? String
params_txt += "\n - required\n - type: TODO\n - CAVEAT: This is a REQUEST PATH variable."
else
params_txt += "\n - #{if value["required"] == true then "required" else "optional" end}" unless value["required"].nil?
params_txt += "\n - type: #{value["type"].split("::").last}" unless value["type"].nil?
params_txt += "\n - default: #{value["default"]}" unless value["default"].nil?
params_txt += "\n - #{if value[:required] == true then "required" else "optional" end}" unless value[:required].nil?
params_txt += "\n - type: #{value[:type].split("::").last}" unless value[:type].nil?
params_txt += "\n - default: #{value[:default]}" unless value[:default].nil?
end
end

@ -1 +1 @@
Subproject commit a0fd5759c3e8799601a7be9aa586744c65cedb11
Subproject commit 806a84ea013c54085b8c3aef41e35cc6561b0c7a