if !relation.preconditions_ok?
render :text => "", :status => :precondition_failed
else
+ relation.version = 0
relation.user_id = @user.id
relation.save_with_history!
def read
begin
relation = Relation.find(params[:id])
-
+ response.headers['Last-Modified'] = relation.timestamp.rfc822
if relation.visible
render :text => relation.to_xml.to_s, :content_type => "text/xml"
else