I wrote my own generator, from console its launched like this
rails generate ead_document TechnicalOpinion --document_type_id=1
It creates
Solution appears to be pretty simple:
This code in controller
Rails::Generators.invoke("ead_document", [@document_type.table_name.classify, "--document_type_id=#{@document_type.id}"])
is the same as this in console