Sha256: 8f9232924282104e3f443434f634cfb91e93a51b39fdd4284080d5ccffa5d291
Contents?: true
Size: 475 Bytes
Versions: 28
Compression:
Stored size: 475 Bytes
Contents
module Pageflow module Editor class EntriesController < Pageflow::ApplicationController respond_to :json before_filter :authenticate_user! def index @entries = DraftEntry.accessible_by(current_ability, :use_files) respond_with(@entries) end def seed @entry = DraftEntry.find(params[:id]) authorize!(:edit, @entry.to_model) @entry_config = Pageflow.config_for(@entry) end end end end
Version data entries
28 entries across 28 versions & 1 rubygems