Module: Trailblazer::Endpoint::Controller::InstanceMethods
- Defined in:
- lib/trailblazer/endpoint/controller.rb
Defined Under Namespace
Instance Method Summary collapse
Instance Method Details
#endpoint_for(name, config_source: self.class) ⇒ Object
128 129 130 |
# File 'lib/trailblazer/endpoint/controller.rb', line 128 def endpoint_for(name, config_source: self.class) config_source.(:endpoints, {}).fetch(name.to_s) # TODO: test non-existant endpoint end |