Module: UDRS::Engine::RailsHelper

Defined in:
lib/udrs/engine/rails_helper.rb

Instance Method Summary collapse

Instance Method Details

#udrs_document(&block) ⇒ Object



4
5
6
7
8
# File 'lib/udrs/engine/rails_helper.rb', line 4

def udrs_document(&block)
	doc = UDRS::Document.new(params[:format].to_sym)
	block.call(doc)
	return doc.render
end