Skip to content

Instantly share code, notes, and snippets.

@kidpollo
Created November 24, 2010 16:57
Show Gist options
  • Save kidpollo/713983 to your computer and use it in GitHub Desktop.
Save kidpollo/713983 to your computer and use it in GitHub Desktop.
def notify
@user = User.find(params[:id])
if @user.is_expert?
@topic.experts << @user
end
@user.notify_about_topic!(@topic)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment