Class: IntegrationPal::SamlController::ERBContext
- Inherits:
-
Object
- Object
- IntegrationPal::SamlController::ERBContext
show all
- Defined in:
- app/controllers/integration_pal/saml_controller.rb
Instance Method Summary
collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(m, *args, **kwargs, &blk) ⇒ Object
33
34
35
36
37
38
39
40
41
42
43
44
|
# File 'app/controllers/integration_pal/saml_controller.rb', line 33
def method_missing(m, *args, **kwargs, &blk)
if m =~ /(_url)$/ && kwargs[:host].nil?
uri = URI.parse(ENV["SAML_DOMAIN"])
kwargs[:host] ||= uri.host
kwargs[:port] ||= uri.port
kwargs[:protocol] ||= uri.scheme
end
[Rails.application.routes.url_helpers, IntegrationPal::Engine.routes.url_helpers].each do |helper|
return helper.send(m, *args, **kwargs, &blk) if helper.respond_to?(m)
end
super
end
|
Instance Method Details
#get_binding ⇒ Object
46
47
48
|
# File 'app/controllers/integration_pal/saml_controller.rb', line 46
def get_binding
binding
end
|