fix missing attribute error
This commit is contained in:
parent
097e9c45e0
commit
0cc4e1b540
@ -194,7 +194,8 @@ class FeedController < ApplicationController
|
|||||||
# if no field_id, just return the json feed
|
# if no field_id, just return the json feed
|
||||||
if params[:field_id].blank?
|
if params[:field_id].blank?
|
||||||
output = @feed.to_json
|
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]}"])
|
output = add_prepend_append(@feed["field#{params[:field_id]}"])
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user