use existing inflections instead of custom helper (#4624)
* use existing inflections instead of custom helper * use ActiveSupport versions
This commit is contained in:
parent
116b8a6363
commit
efec02f153
4 changed files with 2 additions and 46 deletions
|
@ -1,14 +0,0 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module AccountHelper
|
||||
def protocol_for_display(protocol)
|
||||
case protocol
|
||||
when 'activitypub'
|
||||
'ActivityPub'
|
||||
when 'ostatus'
|
||||
'OStatus'
|
||||
else
|
||||
protocol
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue