activeadmin / activeadmin-mongoid

ActiveAdmin hacks to support Mongoid
MIT License
192 stars 210 forks source link

Fixed sorting in activeadmin 1.0 #74

Closed fred closed 7 years ago

fred commented 10 years ago

This fixes Sorting on Active Admin 1.0.0.pre and Rails 4.0.4

I can't run the spec suite within activeadmin-mongoid, but they do pass when I run from my rails app, i.e. copy spec/unit/order_clause_spec.rb to railsapp/spec/models/

The spec suite needs to be fixed here.

fred commented 10 years ago

also, note that this introduces the OrderClause class from upstream activeadmin which makes it much easier to implement mongoid support.

elia commented 10 years ago

:+1: on the fix. I'll just wait for the build to get green, seems that errors are trivial enough