Class: Junebug::Controllers::Versions

Inherits:
R
  • Object
show all
Defined in:
lib/junebug/controllers.rb

Instance Method Summary collapse

Instance Method Details

#get(page_name) ⇒ Object



74
75
76
77
78
79
# File 'lib/junebug/controllers.rb', line 74

def get page_name
  @page_title = "Version History: #{page_name}"
  @page = Page.find_by_title(page_name)
  @versions = @page.find_versions(:order => 'version DESC', :include => [:user])
  render :versions
end