class ChangesetController < ApplicationController
require 'xml/libxml'
- require 'diff_reader'
before_filter :authorize, :only => [:create, :update, :delete, :upload, :include, :close]
before_filter :check_write_availability, :only => [:create, :update, :delete, :upload, :include]
# to close the changeset, we'll just set its closed_at time to
# now. this might not be enough if there are concurrency issues,
# but we'll have to wait and see.
- changeset.closed_at = DateTime.now
+ changeset.set_closed_time_now
changeset.save!
render :nothing => true
render ex.render_opts
end
+private
#------------------------------------------------------------
# utility functions below.
#------------------------------------------------------------