Method: LHS::Record::Endpoints::ClassMethods#compute_url!
- Defined in:
- lib/lhs/concerns/record/endpoints.rb
#compute_url!(params) ⇒ Object
Computes the url from params by identifiying endpoint and compiles it if necessary. Id in params is threaded in a special way.
60 61 62 63 64 65 |
# File 'lib/lhs/concerns/record/endpoints.rb', line 60 def compute_url!(params) endpoint = find_endpoint(params) url = endpoint.compile(params) endpoint.remove_interpolated_params!(params) url end |