Sha256: 76493fb4bbc665d6affb2f4a9834ab9de6c61c0484e25025f5a23a061263b768
Contents?: true
Size: 847 Bytes
Versions: 2
Compression:
Stored size: 847 Bytes
Contents
class Admin::AssetsController < Admin::ResourcesController layout :set_layout def index if params[:layout] add_resources_action("Add New", {:action => "new"}, {}) end super end def new if params[:layout] add_resources_action("Back to list", {:action => "index", :id => nil}, {}) end super end def create if params[:layout] add_resources_action("Back to list", {:action => "index", :id => nil}, {}) end super end def edit if params[:layout] add_resources_action("Back to list", {:action => "index", :id => nil}, {}) end super end def update if params[:layout] add_resources_action("Back to list", {:action => "index", :id => nil}, {}) end super end private def set_layout params[:layout] || "admin/base" end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
typus-3.1.0.rc6 | test/fixtures/rails_app/app/controllers/admin/assets_controller.rb |
typus-3.1.0.rc5 | test/fixtures/rails_app/app/controllers/admin/assets_controller.rb |