Class: Junebug::Controllers::Recent

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

Instance Method Summary collapse

Instance Method Details

#getObject



100
101
102
103
104
# File 'lib/junebug/controllers.rb', line 100

def get
  @page_title = "Recent Changes"
  @pages = Page.find(:all, :order => 'updated_at DESC', :conditions => "julianday('now')-julianday(updated_at) < 30.0")
  render :recent
end