Skip to content

Instantly share code, notes, and snippets.

@bs
Created October 9, 2008 20:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bs/15875 to your computer and use it in GitHub Desktop.
Save bs/15875 to your computer and use it in GitHub Desktop.
def refresh
if params[:last_check] && params[:last_check].respond_to?(:to_i)
@last_check = params[:last_check].to_i
if current_user.current_status.id > @last_check
@last_check = current_user.current_status.id
end
else
@last_check = nil
end
@status = current_user.current_status <--- You added this?
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment