Remove require "xml/libxml" from controllers

This commit is contained in:
Anton Khorev 2024-03-28 11:18:31 +03:00
parent 99bed16f9a
commit fba5528731
6 changed files with 0 additions and 11 deletions

View file

@ -2,8 +2,6 @@
module Api
class ChangesetsController < ApiController
require "xml/libxml"
before_action :check_api_writable, :only => [:create, :update, :upload, :subscribe, :unsubscribe]
before_action :check_api_readable, :except => [:create, :update, :upload, :download, :query, :subscribe, :unsubscribe]
before_action :setup_user_auth, :only => [:show]

View file

@ -2,8 +2,6 @@
module Api
class NodesController < ApiController
require "xml/libxml"
before_action :check_api_writable, :only => [:create, :update, :delete]
before_action :check_api_readable, :except => [:create, :update, :delete]
before_action :authorize, :only => [:create, :update, :delete]

View file

@ -3,8 +3,6 @@
# nodes, ways and relations are basically identical.
module Api
class OldController < ApiController
require "xml/libxml"
before_action :check_api_readable
before_action :check_api_writable, :only => [:redact]
before_action :setup_user_auth, :only => [:history, :show]

View file

@ -1,7 +1,5 @@
module Api
class RelationsController < ApiController
require "xml/libxml"
before_action :check_api_writable, :only => [:create, :update, :delete]
before_action :check_api_readable, :except => [:create, :update, :delete]
before_action :authorize, :only => [:create, :update, :delete]

View file

@ -1,7 +1,5 @@
module Api
class WaysController < ApiController
require "xml/libxml"
before_action :check_api_writable, :only => [:create, :update, :delete]
before_action :check_api_readable, :except => [:create, :update, :delete]
before_action :authorize, :only => [:create, :update, :delete]

View file

@ -4,7 +4,6 @@ class ChangesetsController < ApplicationController
include UserMethods
layout "site"
require "xml/libxml"
before_action :authorize_web
before_action :set_locale