FIX: rename action_code_href to action_code_path (#14834)

Small actions should use path instead of absolute url. getURL function is necessary to insert a potential subfolder prefix.
This commit is contained in:
Krzysztof Kotlarek
2021-11-08 14:32:17 +11:00
committed by GitHub
parent fc98d1edfa
commit 8b93da9fe0
7 changed files with 20 additions and 22 deletions

View File

@ -29,7 +29,7 @@ class UserActionSerializer < ApplicationSerializer
:post_type,
:action_code,
:action_code_who,
:action_code_href,
:action_code_path,
:edit_reason,
:category_id,
:closed,
@ -91,12 +91,12 @@ class UserActionSerializer < ApplicationSerializer
object.action_code_who
end
def include_action_code_href?
action_code_href.present?
def include_action_code_path?
action_code_path.present?
end
def action_code_href
object.action_code_href
def action_code_path
object.action_code_path
end
end