This repository has been archived on 2024-03-16. You can view files and clone it, but cannot push or open issues or pull requests.
2012-05-14 04:34:15 +00:00
|
|
|
module Admin::PageContentHelper
|
|
|
|
include ActionView::Helpers::UrlHelper
|
|
|
|
|
|
|
|
|
|
|
|
def show_page_context_edit_auth_link(page_context)
|
|
|
|
type = 'Edit'
|
|
|
|
# debugger
|
|
|
|
# a=1
|
|
|
|
oa = page_context.get_object_auth_by_title(type)
|
|
|
|
if oa.nil?
|
|
|
|
page_context.object_auths.new(title: type ).save rescue
|
|
|
|
oa = page_context.get_object_auth_by_title(type)
|
|
|
|
end
|
2012-09-12 11:12:50 +00:00
|
|
|
# link_to t(:category_auth), edit_admin_object_auth_path(oa)
|
|
|
|
link_to t(:category_auth),admin_object_auth_ob_auth_path(oa)
|
2012-05-14 04:34:15 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
end
|