Remove require "xml/libxml" from controllers
This commit is contained in:
parent
99bed16f9a
commit
fba5528731
6 changed files with 0 additions and 11 deletions
|
@ -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]
|
||||
|
|
|
@ -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]
|
||||
|
|
|
@ -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]
|
||||
|
|
|
@ -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]
|
||||
|
|
|
@ -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]
|
||||
|
|
|
@ -4,7 +4,6 @@ class ChangesetsController < ApplicationController
|
|||
include UserMethods
|
||||
|
||||
layout "site"
|
||||
require "xml/libxml"
|
||||
|
||||
before_action :authorize_web
|
||||
before_action :set_locale
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue