Simplification of the 'link_back' code

This commit is contained in:
chris2tof committed 2011-04-19 15:05:48 +08:00
1 parent d88cae437d
commit 1909edbe2a
13 files changed
+23 -44

No files matched your search

@@ -14,12 +14,10 @@ class Admin::AssetsController < ApplicationController
def edit
@asset = Asset.find(params[:id])
session[:last_page] = get_go_back || admin_assets_url
end
def new
@asset = Asset.new
session[:last_page] = get_go_back || admin_assets_url
end
def create