As per my need I'm trying to register a custom MIME::Type as follows (including **text/plain**)

```
Mime::Type.register_alias "application/json", :my_json, %w( text/plain text/x-json application/jsonrequest )

```

But when I run following command in rails console

```
Mime::MY_JSON

```

It gives output

```
#<Mime::Type:0x1739e5b0 @synonyms=[], @symbol=:my_json, @string="application/json">

```

Here, @synonyms is empty array.

But, I want the output like `Mime::JSON` => `#<Mime::Type:0x53231d8 @synonyms=["text/x-json", "application/jsonrequest"], @symbol=:json, @string="application/json">`

So that I can use it like:

```
render :my_json => SomeJSON

```

What needs to done?

**EDIT**

This is my entry in config/initializers

```
Mime::Type.register_alias "application/json", :my_json, %w( text/plain text/x-json application/jsonrequest )

```