app/controllers/pageflow/revisions_controller.rb in pageflow-0.1.0 vs app/controllers/pageflow/revisions_controller.rb in pageflow-0.2.0
- old
+ new
@@ -4,19 +4,9 @@
before_filter :authenticate_user!, :unless => lambda { |controller| controller.request.format.css? }
respond_to :json
- def create
- entry = Entry.find(params[:entry_id])
-
- authorize!(:publish, entry)
- verify_edit_lock!(entry)
- verify_quota!(:published_entries, entry.account)
-
- @revision = entry.publish(revision_params.merge(:creator => current_user))
- end
-
def show
revision = Revision.find(params[:id])
authorize!(:show, revision) unless request.format.css?
@entry = PublishedEntry.new(revision.entry, revision)