I have found the solution.
We can scaffold a domain class from another controller by mentioning the name of domain class needed to scaffold dynamically.
For example:
static scaffold = User;
This scaffolding is happening in run-time only. So if we need to avoid scaffolding and if we wish to add actions manually we can eliminate the above code of line.