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