Class: Newebpay::ApplicationController

Inherits:
ActionController::Base
  • Object
show all
Defined in:
app/controllers/newebpay/application_controller.rb

Defined Under Namespace

Classes: InvalidResponseError

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method, *args) ⇒ Object (private)



15
16
17
18
19
20
21
# File 'app/controllers/newebpay/application_controller.rb', line 15

def method_missing(method, *args)
  if ::Rails.application.routes.url_helpers.respond_to?(method)
    ::Rails.application.routes.url_helpers.try(method, *args)
  else
    super
  end
end