obsolete.ChilliProject/vendor/plugins/engines/test/lib/render_information.rb

7 lines
234 B
Ruby
Raw Normal View History

module RenderInformation
def render_class_and_action(note = nil, options={})
text = "rendered in #{self.class.name}##{params[:action]}"
text += " (#{note})" unless note.nil?
render options.update(:text => text)
end
end