Module: Roar::Representer::Feature::Hypermedia
- Defined in:
- lib/pact_broker/api/decorators/pacticipant_collection_decorator.rb
Instance Method Summary collapse
- #compile_links_for(configs, *args) ⇒ Object
-
#original_compile_links_for ⇒ Object
Monkey patch alert! Get “no method rel for Nil” when there is an empty array in links.
Instance Method Details
#compile_links_for(configs, *args) ⇒ Object
15 16 17 |
# File 'lib/pact_broker/api/decorators/pacticipant_collection_decorator.rb', line 15 def compile_links_for configs, *args original_compile_links_for(configs, *args).select(&:any?) end |
#original_compile_links_for ⇒ Object
Monkey patch alert! Get “no method rel for Nil” when there is an empty array in links. Cannot reproduce this in the roar tests :(
13 |
# File 'lib/pact_broker/api/decorators/pacticipant_collection_decorator.rb', line 13 alias_method :original_compile_links_for, :compile_links_for |