Commit bf9e5123 authored by Albert Yi's avatar Albert Yi

make tag autocomplete endpoint expiry dynamic

parent 69eaf167
......@@ -19,7 +19,7 @@ class TagsController < ApplicationController
def autocomplete
@tags = Tag.names_matches_with_aliases(params[:search][:name_matches])
expires_in 7.days
expires_in params[:expiry].to_i.days if params[:expiry]
respond_with(@tags) do |format|
format.xml do
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment