Fix: Editable attrs presence check for the channel class (#3630)
This commit is contained in:
parent
ad09c5dc5f
commit
76e8acd3c6
1 changed files with 5 additions and 1 deletions
|
@ -124,6 +124,10 @@ class Api::V1::Accounts::InboxesController < Api::V1::Accounts::BaseController
|
|||
end
|
||||
|
||||
def get_channel_attributes(channel_type)
|
||||
channel_type.constantize::EDITABLE_ATTRS.presence || []
|
||||
if channel_type.constantize.const_defined?('EDITABLE_ATTRS')
|
||||
channel_type.constantize::EDITABLE_ATTRS.presence
|
||||
else
|
||||
[]
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue