her
her copied to clipboard
Add query params to `find` method is missing
I want to perform this kind of request:
api/groups/7?_embed=users
I can use:
Group.find(7)
But the query params is missing, there is any way to achieve this behaviour with Her?
I seem to be having the same problem
When I check tcpdump, there isn't anything sent for the where query.
[21] pry(SuperBot)> Cluster.find(2)
=> #<Cluster(clusters/2) url="http://134.6.27.164:880/api/clusters/2/" business_owners=[] technical_owners=[] ethernet=[] ipaddresses=[] object_type="cluster" custom_fields={"status"=>"online"} configuration_variables={} __str__="cluster: sslco01 (G200)" tags=[] service_env={"id"=>1, "service"=>"test-service", "environment"=>"test-environment", "url"=>"http://134.6.27.164:880/api/services-environments/1/", "service_uid"=>nil} licences=[] configuration_path=nil base_objects=[] masters=[] created="2016-07-28T00:30:19.597119" modified="2016-07-28T23:07:36.416596" remarks="" name="sslco01" hostname=nil status="in use" type={"id"=>1, "url"=>"http://134.6.27.164:880/api/cluster-types/1/", "name"=>"G200", "show_master_summary"=>false} id=2>
[22] pry(SuperBot)> Cluster.where
=> #<Her::Model::Relation:0x007f9d8dc57c68 @_fetch=nil, @params={}, @parent=Cluster>
stinks this project is dying, its very much needed :(