lib/praxis/extensions/pagination/ordering_params.rb in praxis-2.0.pre.33 vs lib/praxis/extensions/pagination/ordering_params.rb in praxis-2.0.pre.34

- old
+ new

@@ -89,13 +89,9 @@ 'Must be a subclass of MediaType' end ::Class.new(self) do @media_type = media_type - if media_type - # By default all fields in the mediatype are allowed (but defining a DSL block will override it to more specific ones) - @fields_allowed = media_type.attributes.keys - end # Default is to only enforce the allowed fields in the first ordering position (the one typicall uses an index if there) @enforce_all = OrderingParams.enforce_all_fields end end end