Skip to content

Commit

Permalink
remove responds_to in cloud tenant subcollection
Browse files Browse the repository at this point in the history
  • Loading branch information
tzumainn committed Apr 12, 2017
1 parent 023200e commit b235985
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/api/subcollections/cloud_tenants.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module Api
module Subcollections
module CloudTenants
def cloud_tenants_query_resource(object)
object.respond_to?(:cloud_tenants) ? object.cloud_tenants : []
object.cloud_tenants
end
end
end
Expand Down

0 comments on commit b235985

Please sign in to comment.