mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-11-11 17:00:41 +08:00
fixed syntax error
This commit is contained in:
parent
67b7c8fe07
commit
f05ddac07d
1 changed files with 1 additions and 1 deletions
|
|
@ -50,7 +50,7 @@ module ArchivableModel
|
||||||
|
|
||||||
def name_with_label
|
def name_with_label
|
||||||
raise NotImplementedError, "Archivable model must implement the '.archived_branch?' method!" unless respond_to?(:archived_branch?)
|
raise NotImplementedError, "Archivable model must implement the '.archived_branch?' method!" unless respond_to?(:archived_branch?)
|
||||||
return "#{I18n.t('labels.archived'} #{parent&.name || name}" if archived_branch?
|
return "#{I18n.t('labels.archived')} #{parent&.name || name}" if archived_branch?
|
||||||
|
|
||||||
parent&.name || name
|
parent&.name || name
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue