# Check the arguments are sane
raise OSM::APIBadUserInput, "No id was given" unless params[:id]
raise OSM::APIBadUserInput, "No text was given" if params[:text].blank?
# Check the arguments are sane
raise OSM::APIBadUserInput, "No id was given" unless params[:id]
raise OSM::APIBadUserInput, "No text was given" if params[:text].blank?
def add_comment(note, text, event, notify: true)
attributes = { :visible => true, :event => event, :body => text }
def add_comment(note, text, event, notify: true)
attributes = { :visible => true, :event => event, :body => text }