Sha256: b75c0589ec5f58346030acb4bb3c546b532a89c151e52eda41017a06eb090615
Contents?: true
Size: 988 Bytes
Versions: 2
Compression:
Stored size: 988 Bytes
Contents
module Outpost class ApplicationController < ActionController::Base include Outpost::Breadcrumbs include Outpost::Controller::Authorization include Outpost::Controller::Authentication include Outpost::Controller::CustomErrors abstract! protect_from_forgery before_filter :root_breadcrumb before_filter :set_sections #------------------------ # Always want to add this link to the Breadcrumbs def root_breadcrumb breadcrumb "Outpost", outpost_root_path end #---------------------- def set_sections @sections = {} end #---------------------- def with_rollback(object) object.transaction do yield if block_given? raise ActiveRecord::Rollback end end #---------------------- def render_preview_validation_errors(record) render "/outpost/shared/_preview_errors", :layout => "outpost/minimal", :locals => { record: record } end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
outpost-cms-0.0.5 | app/controllers/outpost/application_controller.rb |
outpost-cms-0.0.4 | app/controllers/outpost/application_controller.rb |