Works with Rails 4, Ruby 2.0 and Active Admin's current master branch.

Small tweaks to get working with Rails 4.