lib/plezi/controller/controller.rb
def requested_method
         params['_method'.freeze] = (params['_method'.freeze] || request.request_method.downcase).to_sym
         self.class._pl_params2method(params, request.env)
      end
def requested_method
         params['_method'.freeze] = (params['_method'.freeze] || request.request_method.downcase).to_sym
         self.class._pl_params2method(params, request.env)
      end
def requested_method params [ '_method' . freeze ] = ( params [ '_method' . freeze ] || request . request_method . downcase ) . to_sym self . class . _pl_params2method ( params , request . env ) end
Returns the method that was called by the HTTP request.

 It's possible to override this method to change the default Controller behavior.

 For Websocket connections this method is most likely to return :preform_upgrade
Returns the method that was called by the HTTP request .