mirror of
https://github.com/internetee/registry.git
synced 2025-08-06 01:35:10 +02:00
Refactor
This commit is contained in:
parent
e20b138644
commit
6d257ecc2c
4 changed files with 24 additions and 14 deletions
15
app/controllers/concerns/epp/common.rb
Normal file
15
app/controllers/concerns/epp/common.rb
Normal file
|
@ -0,0 +1,15 @@
|
|||
module Epp::Common
|
||||
extend ActiveSupport::Concern
|
||||
|
||||
included do
|
||||
protect_from_forgery with: :null_session
|
||||
end
|
||||
|
||||
def proxy
|
||||
send(params[:command])
|
||||
end
|
||||
|
||||
def parsed_frame
|
||||
Nokogiri::XML(params[:frame]).remove_namespaces!
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue