gregbell/active_admin — pull request #2226 by lacco (2013-05-24 11:39:59+00:00)
Title: fix Rails 4 problem with form builder ("undefined method `upcase'")

In Rails 4, ActiveRecord::Base#model_name no longer returns a string, but an ActiveModel::Name object, see https://gist.github.com/brupm/4544950. Calling #to_s on this object is a Rails3-compatible workaround for this change.