app/controllers/search_controller.rb in social_stream-base-0.9.13 vs app/controllers/search_controller.rb in social_stream-base-0.9.14
- old
+ new
@@ -20,9 +20,13 @@
else
@search_result = global_search
end
end
end
+ respond_to do |format|
+ format.html { render :layout => (user_signed_in? ? 'application' : 'frontpage') }
+ format.js
+ end
end
private
def too_short_query