fix missing attribute error

This commit is contained in:
Lee Lawlor 2014-09-06 09:26:34 -04:00
parent 097e9c45e0
commit 0cc4e1b540

View File

@ -194,7 +194,8 @@ class FeedController < ApplicationController
# if no field_id, just return the json feed
if params[:field_id].blank?
output = @feed.to_json
else
# if the field exists
elsif @feed.attributes.keys.include?("field#{params[:field_id]}")
output = add_prepend_append(@feed["field#{params[:field_id]}"])
end