Refactoring generation code. Fixed rendering of interaction in markdown when ActiveSupport is loaded