Sha256: 9d7b440b7926bee2ea8c4a53c498ec01fe7aef7bcda78709634e92bfffaf26e4
Contents?: true
Size: 475 Bytes
Versions: 41
Compression:
Stored size: 475 Bytes
Contents
module Pageflow module Editor class EntriesController < Pageflow::ApplicationController respond_to :json before_action :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
41 entries across 41 versions & 1 rubygems