Sha256: e296ce8a7fa7c1ecb1d46e42e7d7a8356d47d3f22e5dca4b726ff50335aafc2a

Contents?: true

Size: 364 Bytes

Versions: 5

Compression:

Stored size: 364 Bytes

Contents

class PagesController < ApplicationController
  before_filter :require_user, :only => [:create, :new, :update, :edit, :destroy]
  
  make_resourceful do
    actions :all
  end
  
  private
  
  def current_objects
    Page.find(:all, :order => 'created_at DESC')
  end
  
  def current_object
    @current_object ||= Page.find_by_title_slug! params[:id]
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
hubbub-0.0.11 lib/app/controllers/pages_controller.rb
hubbub-0.0.10 lib/app/controllers/pages_controller.rb
hubbub-0.0.9 lib/app/controllers/pages_controller.rb
hubbub-0.0.8 lib/app/controllers/pages_controller.rb
hubbub-0.0.6 lib/app/controllers/pages_controller.rb