app/controllers/concerns/orderable.rb in apicasso-0.6.5 vs app/controllers/concerns/orderable.rb in apicasso-0.6.6

- old
+ new

@@ -37,9 +37,10 @@ # Ordering sign parse, which separates def parse_sign(attr) attr.match(/\A[+-]/).nil? ? '+': attr.slice!(0) end + # Gets class of the resource of the current request def model - representative_resource.classify.constantize + (params[:nested] || params[:resource] || controller_name).classify.constantize end end