```ruby
require 'active_support/core_ext/string/inflections'
module RailsAdmin
  class AbstractModel
    module GenericSupport
      def to_param
        parts = model.to_s.split("::")
        parts.map{|x| x == parts.last ? x.underscore.pluralize : x.underscore}.join("::")
      end

      def pretty_name
        model.human_name
      end
    end
  end
end
```

Use Model.model_name.human instead of Model.human_name, which is deprecated
user
```ruby
require 'active_support/core_ext/string/inflections'
module RailsAdmin
  class AbstractModel
    module GenericSupport
      def to_param
        parts = model.to_s.split("::")
        parts.map{|x| x == parts.last ? x.underscore.pluralize : x.underscore}.join("::")
      end

      def pretty_name
        model.model_name.human
      end
    end
  end
end
```
assistant