Add missing helper
This commit is contained in:
1 parent
d1797ac8e3
commit
976114cfa9
1 file changed
+18
vendor/built_in_modules/page_content/app/helpers/panel/page_content/back_end/page_contexts_helper.rb
Vendored
+18
@@ -0,0 +1,18 @@
|
||||
module Panel::PageContent::BackEnd::PageContextsHelper
|
||||
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
|
||||
# link_to t(:category_auth), edit_admin_object_auth_path(oa)
|
||||
link_to t(:category_auth),admin_object_auth_ob_auth_path(oa)
|
||||
end
|
||||
|
||||
end
|
||||
Reference in new issue
Block a user