Simplification of the 'link_back' code
This commit is contained in:
1 parent
d88cae437d
commit
1909edbe2a
13 files changed
+23
-44
No files matched your search
@@ -13,13 +13,11 @@ class Admin::LinksController < ApplicationController
|
||||
@link = Link.new
|
||||
@link.is_published = true
|
||||
@link.parent_id = @parent_item.id rescue nil
|
||||
session[:last_page] = get_go_back || admin_links_url
|
||||
end
|
||||
|
||||
def edit
|
||||
@link = Link.find(params[:id])
|
||||
@i18n_variable = @link.i18n_variable
|
||||
session[:last_page] = get_go_back || admin_links_url
|
||||
end
|
||||
|
||||
def create
|
||||
|
||||
Reference in new issue
Block a user