render_information.rb
6 lines
| 234 B
| text/x-ruby
|
RubyLexer
|
r2773 | 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 |